dbTalk Databases Forums  

Using generated script in SQLCLIENT

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Using generated script in SQLCLIENT in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Al Christoph
 
Posts: n/a

Default Using generated script in SQLCLIENT - 11-13-2006 , 06:30 PM






I have a script for my database that works wonderfully in SQL Manager Express.

I'd like to feed it to sqlclient.executenonquery. But as a mimimum all those
GO statements get in the way.

Is there any way of using the generated script short of massaging it by hand?

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.


Reply With Quote
  #2  
Old   
Roger Wolter[MSFT]
 
Posts: n/a

Default Re: Using generated script in SQLCLIENT - 11-21-2006 , 12:11 AM






The GO is a batch separator used by SSMS to determine when to send a command
to the server. If your SQL Client program sends a batch fro every GO
statement (and doesn't include the GO) it should work the same as the SSMS
script.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Al Christoph" <AlFrom3BearsSoftware (AT) newsgroups (DOT) nospam> wrote

Quote:
I have a script for my database that works wonderfully in SQL Manager
Express.

I'd like to feed it to sqlclient.executenonquery. But as a mimimum all
those
GO statements get in the way.

Is there any way of using the generated script short of massaging it by
hand?

--
Regards,
Al Christoph
Senior Consultant
Three Bears Software, LLC
just right software @ just right prices @ 3bears.biz
Microsoft Certified Partner (ISV)
Coming soon: Windows Mail for Vista.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.