|
-
Apr 28th, 2004, 07:06 PM
#1
Thread Starter
Hyperactive Member
how to use SQL Server in Web Service?
I'm building a web service which needs check the SQL Server. Now, I finished the code for SQL Server. Everything is ok if it is a windows form application. I simply copied the code to a function in the Web Service, however, it reports error when I invoke the service function. Where can I find some examples like that?
thanks
-
Apr 29th, 2004, 06:41 AM
#2
Fanatic Member
Do you have a description of the error message?
Are you using an integrated security connection string? - in a windows app it would be the client credentials, but on the server it would be who ever is logged into the server so those permissions might not be set in SQL Server.
-
Apr 30th, 2004, 01:15 AM
#3
Thread Starter
Hyperactive Member
Originally posted by VBCrazyCoder
Do you have a description of the error message?
Are you using an integrated security connection string? - in a windows app it would be the client credentials, but on the server it would be who ever is logged into the server so those permissions might not be set in SQL Server.
these are two strings I tried:
Dim SqlPubsConnString As String = "Data Source=.;" _
& "Integrated Security=SSPI;Initial Catalog=pubs"
Dim SqlPubsConnString As String = "Data Source=(local);" _
& "User ID=sa;Initial Catalog=pubs"
both failed when I open the connection.
the SQL Server is on local machine.
thx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|