Showing posts with label net. Show all posts
Showing posts with label net. Show all posts

Friday, March 30, 2012

How to author reports for Reporting Services?

I have installed and am using Reporting Services.

I can create RDL files using Visual Studio.NET, but like to offload this task to a minion who does not have VS.NET.

Is there a stripped down something-or-other to make reports that and end user or business analyst could use and then upload the reports?

Thanks.You might consider Soft Artisans'OfficeWriter. I personally don't have any experience using Reporting Services with OfficeWriter; I have only used their ExcelWriter product and was very pleased with both it and their customer service.

Terri

Wednesday, March 28, 2012

How to assign more Operators to a Job failure alert ?

Hello,
I'm using SQL Server 2000 and have defined 3 Operators that need to receive
alerts from shecduled jobs.
We have chosen to go with 'Net Send' type of alert.
Inside each scheduled job, under Notifications Tab, it doesn't give me a
choice to add more operators upon failure of this job, nor does it allow me
to run a script (a batch file that I would include Net send commands to 3
Operators).
Is there a quick way to resolve this without installing Notifications
Services ?
Thanks,
Sam.
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200603/1
Xref: TK2MSFTNGP08.phx.gbl microsoft.public.sqlserver.server:426602
We use netsend operators at work but rather than using seperate mail
accounts, we use a mail group, that way you can send to more users.
"Sameer via droptable.com" <u4996@.uwe> wrote in message
news:5d00a065a9839@.uwe...
> Hello,
> I'm using SQL Server 2000 and have defined 3 Operators that need to
receive
> alerts from shecduled jobs.
> We have chosen to go with 'Net Send' type of alert.
> Inside each scheduled job, under Notifications Tab, it doesn't give me a
> choice to add more operators upon failure of this job, nor does it allow
me
> to run a script (a batch file that I would include Net send commands to 3
> Operators).
> Is there a quick way to resolve this without installing Notifications
> Services ?
> Thanks,
> Sam.
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forums...erver/200603/1
|||Where and how do you create the Mail Group ?
Message posted via http://www.droptable.com
|||In your mail server.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"spremji via droptable.com" <u4996@.uwe> wrote in message news:5d036a522f9fe@.uwe...
> Where and how do you create the Mail Group ?
> --
> Message posted via http://www.droptable.com
|||Would that mean that I have to setup MAPI on SQL Server for it to detect Mail
Groups ?
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200603/1
|||The built-in mail feature of SQL Server 2000 only supports MAPI. There are some workarounds
(http://www.karaszi.com/SQLServer/info_no_mapi.asp), but we finally got SMTP support in 2005.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"spremji via droptable.com" <u4996@.uwe> wrote in message news:5d0e98b1e5179@.uwe...
> Would that mean that I have to setup MAPI on SQL Server for it to detect Mail
> Groups ?
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forums...erver/200603/1
|||The reason we went with Net Send was to avoid MAPI setup on the server. But I
guess, I'll develop custom-code to handle this.
Thanks for your advises. I appreciate it :-)
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200603/1

How to assign more Operators to a Job failure alert ?

Hello,
I'm using SQL Server 2000 and have defined 3 Operators that need to receive
alerts from shecduled jobs.
We have chosen to go with 'Net Send' type of alert.
Inside each scheduled job, under Notifications Tab, it doesn't give me a
choice to add more operators upon failure of this job, nor does it allow me
to run a script (a batch file that I would include Net send commands to 3
Operators).
Is there a quick way to resolve this without installing Notifications
Services ?
Thanks,
Sam.
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200603/1Xref: TK2MSFTNGP08.phx.gbl microsoft.public.sqlserver.server:426602
We use netsend operators at work but rather than using seperate mail
accounts, we use a mail group, that way you can send to more users.
"Sameer via droptable.com" <u4996@.uwe> wrote in message
news:5d00a065a9839@.uwe...
> Hello,
> I'm using SQL Server 2000 and have defined 3 Operators that need to
receive
> alerts from shecduled jobs.
> We have chosen to go with 'Net Send' type of alert.
> Inside each scheduled job, under Notifications Tab, it doesn't give me a
> choice to add more operators upon failure of this job, nor does it allow
me
> to run a script (a batch file that I would include Net send commands to 3
> Operators).
> Is there a quick way to resolve this without installing Notifications
> Services ?
> Thanks,
> Sam.
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200603/1|||Where and how do you create the Mail Group ?
Message posted via http://www.droptable.com|||In your mail server.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"spremji via droptable.com" <u4996@.uwe> wrote in message news:5d036a522f9fe@.uwe...agreen">
> Where and how do you create the Mail Group ?
> --
> Message posted via http://www.droptable.com|||Would that mean that I have to setup MAPI on SQL Server for it to detect Mai
l
Groups ?
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200603/1|||The built-in mail feature of SQL Server 2000 only supports MAPI. There are s
ome workarounds
(http://www.karaszi.com/SQLServer/info_no_mapi.asp), but we finally got SMTP
support in 2005.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"spremji via droptable.com" <u4996@.uwe> wrote in message news:5d0e98b1e5179@.uwe...agreen">
> Would that mean that I have to setup MAPI on SQL Server for it to detect M
ail
> Groups ?
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200603/1|||The reason we went with Net Send was to avoid MAPI setup on the server. But
I
guess, I'll develop custom-code to handle this.
Thanks for your advises. I appreciate it :-)
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200603/1

Monday, March 26, 2012

how to apply a sql script file on Sql server 2000 without OSql.exe

Hi guys

I need to apply a sql script file on Sql server 2000 by .net 2.0 program. but on the current running machine, there is not Osql.exe file. Do you guys know how to execute the sql file without the command? Is there any way provided in .net library ?

Thanks for you response!

This Should help.|||

Hi Ken

thanks for your response.

if my script file is long with comments,translation. if I combine all text lines in the file into one string to execute on sql, an error will be thrown out. how do you think that situation?

|||

Hi andi,

When you have installed a SQL Server instance, the osql.exe tool will always be installed. If you don't have SQL Server instance, the scripts cannot be applied to any SQL Server instance.

sql

Friday, March 23, 2012

How to allow FULLTEXT SEARCH INDEXING to non-admin user?

I've tried searching alot on the net but am not able to find how to allow a user (not admin/owner) to be able to create & populate the FullText Indexing Catalogs on the tables he creates.
Currently although with admin account, I can create FullText Catalogs but I have to provide the permissions to build & populate catalogs to some user, so that he can use FullText Search on his tables.
Please Help

Cheers
LuckyHelllooooo.....does anyone know abt it?sql

How to allow FULLTEXT SEARCH INDEXING to non-admin user (in MSSQL 2000)?

I've tried searching a lot on the net but am not able to find out how to allow a user (not admin/owner) to be able to create & populate the FullText Indexing Catalogs on the tables he creates (in MSSQL 2000) .
Currently although with admin account, I can create FullText Catalogs but I have to provide the permissions to build & populate catalogs to some user, so that he can use FullText Search on his tables.
Please Help.
I'm not very experienced in using SQL, so if you can give a bit of explaination also then it would be really helpfull :-)
Cheers :-)

Hey
So no one knows abt it?

|||You have to be members of sysadmin or db_owner to create sp_fulltext_catalog. The reason is that SQL 2000 catalog resides in file system (that is, outside of sql server). From the securiety's point of view, sql 2000 cannot let a user to create catalog.|||

Although the user has been given db_owner but in Sql Server Enterprise Manager it shows FullText Service with a red Flag (Stopped) & when i try to start it, then it shows the following error --

"An error 1722- (The RPC server is unavailable) occurred while performing this service operation on the MSSearch service."

But logging with admin a/c it shows green Flag (started FullText Service)

Also does activating RPC service have any security issues.

Thanks :-)

Wednesday, March 21, 2012

How to allow FULLTEXT SEARCH INDEXING to non-admin user (in MSSQL 2000)?

I've tried searching a lot on the net but am not able to find out how to allow a user (not admin/owner) to be able to create & populate the FullText Indexing Catalogs on the tables he creates (in MSSQL 2000) .
Currently although with admin account, I can create FullText Catalogs but I have to provide the permissions to build & populate catalogs to some user, so that he can use FullText Search on his tables.
Please Help.
I'm not very experienced in using SQL, so if you can give a bit of explaination also then it would be really helpfull :-)
Cheers :-)

Hey
So no one knows abt it?

|||You have to be members of sysadmin or db_owner to create sp_fulltext_catalog. The reason is that SQL 2000 catalog resides in file system (that is, outside of sql server). From the securiety's point of view, sql 2000 cannot let a user to create catalog.|||

Although the user has been given db_owner but in Sql Server Enterprise Manager it shows FullText Service with a red Flag (Stopped) & when i try to start it, then it shows the following error --

"An error 1722- (The RPC server is unavailable) occurred while performing this service operation on the MSSearch service."

But logging with admin a/c it shows green Flag (started FullText Service)

Also does activating RPC service have any security issues.

Thanks :-)

How to allow FULLTEXT SEARCH INDEXING to non-admin user (in MSSQL 2000)?

I've tried searching a lot on the net but am not able to find out how to allow a user (not admin/owner) to be able to create & populate the FullText Indexing Catalogs on the tables he creates (in MSSQL 2000) .
Currently although with admin account, I can create FullText Catalogs but I have to provide the permissions to build & populate catalogs to some user, so that he can use FullText Search on his tables.
Please Help.
I'm not very experienced in using SQL, so if you can give a bit of explaination also then it would be really helpfull :-)
Cheers :-)

Hey
So no one knows abt it?

|||You have to be members of sysadmin or db_owner to create sp_fulltext_catalog. The reason is that SQL 2000 catalog resides in file system (that is, outside of sql server). From the securiety's point of view, sql 2000 cannot let a user to create catalog.|||

Although the user has been given db_owner but in Sql Server Enterprise Manager it shows FullText Service with a red Flag (Stopped) & when i try to start it, then it shows the following error --

"An error 1722- (The RPC server is unavailable) occurred while performing this service operation on the MSSearch service."

But logging with admin a/c it shows green Flag (started FullText Service)

Also does activating RPC service have any security issues.

Thanks :-)

How to allow FULLTEXT SEARCH INDEXING to non-admin user (in MSSQL 2000)?

I've tried searching a lot on the net but am not able to find out how to allow a user (not admin/owner) to be able to create & populate the FullText Indexing Catalogs on the tables he creates (in MSSQL 2000) .
Currently although with admin account, I can create FullText Catalogs but I have to provide the permissions to build & populate catalogs to some user, so that he can use FullText Search on his tables.
Please Help.
I'm not very experienced in using SQL, so if you can give a bit of explaination also then it would be really helpfull :-)
Cheers :-)

Hey
So no one knows abt it?

|||You have to be members of sysadmin or db_owner to create sp_fulltext_catalog. The reason is that SQL 2000 catalog resides in file system (that is, outside of sql server). From the securiety's point of view, sql 2000 cannot let a user to create catalog.|||

Although the user has been given db_owner but in Sql Server Enterprise Manager it shows FullText Service with a red Flag (Stopped) & when i try to start it, then it shows the following error --

"An error 1722- (The RPC server is unavailable) occurred while performing this service operation on the MSSearch service."

But logging with admin a/c it shows green Flag (started FullText Service)

Also does activating RPC service have any security issues.

Thanks :-)

Monday, March 19, 2012

How to add reference in C# SQL Server Project (June CTP)

Hi,

I'm using June CTP Visual studio .NET Framework. I have created SQL Server Project in C# language. In that i want to add external dll's to that Project. But when i click the Add reference in the References, it shows only two Tabs 1. Projects 2. SQL Server.

I cant able to add external dll's located in some other location to my References. How to do this? Please let me know if anybody know the solution.

Thanks,
Vinoth
Vinoth@.gsdindia.com

SQL Server projects in Visual Studio 2005 allow you to add references to other SQL Server projects and assemblies registered in the database you are connected to. Apart from these you cannot add references to assemblies on disk.
If you need to use an assembly, register it inside SQL Server using CREATE ASSEMBLY statement from SQL Server Management Studio (refer SQL Server Books Online for more help) and then you would see this assembly in the SQL Server tab.
A question: What are the external dll's you want to use? Are they developed by you or are they coming from somewhere else?

Thanks,
-Vineet.|||

Thanks for ur reply,

A question: What are the external dll's you want to use? Are they developed by you or are they coming from somewhere else?


Yes Vineet,

The external dll's are developed by me.It's not related to SQL server Project. Can i register the external dll's(eventhough its not related to SQL Server Project) using CREATE ASSEMBLY statement from SQL Server Management Studio and can i use it?


Thanks,
Vinoth

Monday, March 12, 2012

How to add newline in column of type nvarchar

Hi,
I want to add a newline in a content of sql column (using t-sql and not asp.net textbox) so when content is being rendered in a .net textbox I get separate rows, so instead
col1 col2 col3
I woule like to have
col1
col2
col3
Thanks

You can use CHAR(13) to insert a carriage return into the string. e.g.

INSERT INTO MyTable (MyStringColumn) VALUES('My name is'+CHAR(13)+'Colin Mackay')
See also SQL Server Books-On-Line:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ca-co_6xte.asp
Does this help?

|||Yes, that's it, thanks

how to add image file to a table?

If I have a table with an image column, how can I add an image file to the
image field? Using ADO.Net I can use the command object to add text data
like this:
cmd.CommandText = "Insert Into tlb1(fld1) Values('test1')"
cmd.ExecuteNonQuery()
But what if I want to add the file at C:\dir1\pic1.jpg?
cmd.CommandText = ?
Do I need to use the ADODB Stream Object for this? While I am at it, is
there a difference between storing an image file in an image column or a
binary column?
Thanks,
RichJust have a look here, there is a code snipplet presented within the
article:
http://www.codeproject.com/aspnet/PicManager.asp
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
--
"Rich" <Rich@.discussions.microsoft.com> schrieb im Newsbeitrag
news:B848F047-4D0A-4EAE-B609-3DC58482FFA0@.microsoft.com...
> If I have a table with an image column, how can I add an image file to the
> image field? Using ADO.Net I can use the command object to add text data
> like this:
> cmd.CommandText = "Insert Into tlb1(fld1) Values('test1')"
> cmd.ExecuteNonQuery()
> But what if I want to add the file at C:\dir1\pic1.jpg?
> cmd.CommandText = ?
> Do I need to use the ADODB Stream Object for this? While I am at it, is
> there a difference between storing an image file in an image column or a
> binary column?
> Thanks,
> Rich
>|||Thanks very much for your reply. I retrieved the code you pointed me to.
But one problem I seem to always have is that when I try to run an aspx app
that I copied from somewhere else I keep getting the following error message
:
"Error while trying to run project: Unable to start debugging on the web
server. The project is not configured to be debugged."
My workaround has been to create a whole new project and copy the parts from
the original project. I have explored the Assembly file, the WebConfig file
to see if there is anything to configure there. But I have not had any luck
.
Do you know how I could configure this application so that I don't have to
create a whole new one?
Thanks again,
Rich
"Jens Sü?meyer" wrote:

> Just have a look here, there is a code snipplet presented within the
> article:
> http://www.codeproject.com/aspnet/PicManager.asp
> --
> HTH, Jens Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
> "Rich" <Rich@.discussions.microsoft.com> schrieb im Newsbeitrag
> news:B848F047-4D0A-4EAE-B609-3DC58482FFA0@.microsoft.com...
>
>|||Well, I went ahead and created a new project. When I ran it - it worked
perfectly! Thanks very much for your help.
Rich
"Rich" wrote:
> Thanks very much for your reply. I retrieved the code you pointed me to.
> But one problem I seem to always have is that when I try to run an aspx ap
p
> that I copied from somewhere else I keep getting the following error messa
ge:
> "Error while trying to run project: Unable to start debugging on the web
> server. The project is not configured to be debugged."
> My workaround has been to create a whole new project and copy the parts fr
om
> the original project. I have explored the Assembly file, the WebConfig fi
le
> to see if there is anything to configure there. But I have not had any lu
ck.
> Do you know how I could configure this application so that I don't have t
o
> create a whole new one?
> Thanks again,
> Rich
> "Jens Sü?meyer" wrote:
>|||One more question if I may. This routine is using a Web button which
contains the PostedFile method.
Upload.PostedFile.InputStream.Read (pic, 0, len);
So, even though this works, I can only do it from an aspx page. Can
something like this be done using ADO/ADO.Net?
Anyway, thanks again for your help on this.
Rich
"Rich" wrote:
> Well, I went ahead and created a new project. When I ran it - it worked
> perfectly! Thanks very much for your help.
> Rich
> "Rich" wrote:
>|||You have to go in the properties of the virtual Directory and create an
Applicationame for the Virtual Directory, then it is ackknowledge from IIS
as an asp.NET project.
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
--
"Rich" <Rich@.discussions.microsoft.com> schrieb im Newsbeitrag
news:7CD9B4A2-0EB2-49F2-8157-F6C22C81E247@.microsoft.com...
> Thanks very much for your reply. I retrieved the code you pointed me to.
> But one problem I seem to always have is that when I try to run an aspx
> app
> that I copied from somewhere else I keep getting the following error
> message:
> "Error while trying to run project: Unable to start debugging on the web
> server. The project is not configured to be debugged."
> My workaround has been to create a whole new project and copy the parts
> from
> the original project. I have explored the Assembly file, the WebConfig
> file
> to see if there is anything to configure there. But I have not had any
> luck.
> Do you know how I could configure this application so that I don't have to
> create a whole new one?
> Thanks again,
> Rich
> "Jens Smeyer" wrote:
>|||http://support.microsoft.com/kb/309158/en-us
HTH, Jens Suessmeyer.
http://www.sqlserver2005.de
--
"Rich" <Rich@.discussions.microsoft.com> schrieb im Newsbeitrag
news:87DAE68E-8E09-4FF9-A7A2-F317A7B2618E@.microsoft.com...
> One more question if I may. This routine is using a Web button which
> contains the PostedFile method.
> Upload.PostedFile.InputStream.Read (pic, 0, len);
> So, even though this works, I can only do it from an aspx page. Can
> something like this be done using ADO/ADO.Net?
> Anyway, thanks again for your help on this.
> Rich
> "Rich" wrote:
>|||Thank you again for your help. And I appologize for my ignorance. Anyway,
I
went to the properties of my virtual directory. There is already an
application name there - the name of the virtual directory. I am not clear
on what name I should put in there. Is it the name of my project? So
everytime I copy a project from somehwere I put the name of that project in
the Application name box in the properties of the Virtual directory?
Thanks also for the article on using ADO.Net for writing blobs to Sql
Server.
Rich
"Jens Sü?meyer" wrote:

> You have to go in the properties of the virtual Directory and create an
> Applicationame for the Virtual Directory, then it is ackknowledge from IIS
> as an asp.NET project.
> --
> HTH, Jens Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
> "Rich" <Rich@.discussions.microsoft.com> schrieb im Newsbeitrag
> news:7CD9B4A2-0EB2-49F2-8157-F6C22C81E247@.microsoft.com...
>
>

Friday, March 9, 2012

how to add aspnet user to sqlexpress

Hi guys

I am trying to add aspnet user to sqlexpress. I am able to select the asp.net however when I click on OK button,

it is asking me to enter a name for it. COuld you tell me what name I should enter? I tried computername\aspnet didn't help?

is there better way to do this?

thanks for your help

Cemal

Hi patron,

What are the steps you did for creating user? We can simply create user by following steps:

In Management Studio, locate to Server name | Security | Logins, right click Logins node and select "New Login…", click Search button in General panel. Then the "Select User or Group" dialog appears. Please be sure the location is your computer name. Input ASPNET or Network Service in the TextBox and then click "Check Names".

Wednesday, March 7, 2012

How to add an identity PK column to a View

For an ASP.net project, I have had a DropDownList with a static ArrayList.
The ArrayList will be defined from a View, where there is no Identity PK.

I also have used cbxDropDownListName.SelectedIndex to add new data to
a table, where an Indetity PK is used to reference the ArrayList.

I am wondering how can I add an identity PK to my view?

TIA,
Jeffrey

Why don't you select an identity column from one of the tables in the view? Pick an identity column that, by the view definition, would be unique in the view result set.

Sunday, February 19, 2012

how to access the Sql server ...

hi ,

I have the Data and log file of the pubs dataBase(pubs,pubs_log)...

Now i want access the pubs database through the C#.net without installing the Sql server in my system.. just like the Msaccess. please any body tell me.. is it possible.

Thanks & Regards,

S.Sajan

That is not possible.

You must have SQL Server installed to use the Northwind and Pubs SQL Server databases.

You can get an Access version of Northwind here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=C6661372-8DBE-422B-8676-C632D66C529C&displaylang=EN

You can get an Access version of Pubs here:

http://authors.aspalliance.com/andrewmooney/53/pubs.zip

You could then use them in your C# application with the JET provider.

|||

hi Arnie Rowland,

Thanks for ur reply....my doubt is i want to deploye my project in client side.. in that time th don't see the data base... so..without installing the Sql server can access the database through the c#.net

|||

Your application can also install the SQL Server.

See these resources:

SQL Server 2005 UnAttended Installations
http://msdn2.microsoft.com/en-us/library/ms144259.aspx
http://www.devx.com/dbzone/Article/31648

How to access the SQL mobile database(.sdf) using ASP.Net?

How to access the SQL mobile database(.sdf) using ASP.Net?

When i try to add the System.Data.SqlServerCe.dll as a Reference it shows the following error.

Error 1 Could not load file or assembly 'System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

You must browse to this folder: C:\Programmer\Microsoft SQL Server Compact Edition\v3.1 and add the reference from there. In addition, you must follow the instructions in this article http://msdn2.microsoft.com/en-us/library/system.data.sqlserverce.sqlceconnection.aspx if you want to use the SqlCeConnection. Also note the advice on performance problems with SQL CE and asp.net. Please not there is a documentation error, see here for the correct syntax:

http://msdn2.microsoft.com/en-us/library/ms174612.aspx