Re: Creating a SQL Procedure from text file
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Thu, 10 Jan 2008 10:25:59 -0500
Terrance wrote:
I have a question and I'm not quite sure if this can be done or not.
Does any have any idea(s) on how to create a SQL stored procedure
from a text file using C#.
There was no way for you to know it (except maybe by browsing through
some of the previous questions in this newsgroup before posting yours -
always a recommended practice) , but this is a classic ADO newsgroup.
ADO.Net bears very little resemblance to classic ADO so, while you may
be lucky enough to find a dotnet-knowledgeable person here who can
answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.public.dotnet.framework.adonet.
You see a developer has given me a text
file that creates some stored procedures for a database. I am in the
process of creating a app that will create the database along with
the stored procedures.
I don't want to rewrite what the developer wrote I just want to be
able to read the file content and run it to create the stored
procedures. Will using SQLDMO help?
Just read the text into a variable, parse it to remove all GO
statements, and run it via a SQLCommand object ...
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- Prev by Date: Re: using ado drivers with 64 bits software
- Next by Date: Re: using ado drivers with 64 bits software
- Previous by thread: using ado drivers with 64 bits software
- Next by thread: error when connecting to sql db
- Index(es):
Relevant Pages
- Re: functions in asp
... See detailed responses to same post in the client newsgroup ... we open the
connection object by calling the connection string ... | 'Loop through the database
to check for the users information ... |>>> easiest way to avoid SQL Injection is to
use Stored Procedures. ... (microsoft.public.frontpage.programming) - Re: C# stored procedures
... William Vaughn ... Microsoft MVP ... Please reply only to the
newsgroup so that others can benefit. ... (microsoft.public.dotnet.framework.adonet) - Re: Timeout Error Question
... David Berry wrote: ... > creating any Stored Procedures. ...
You will get a quicker response by posting to the newsgroup. ... (microsoft.public.inetserver.asp.general) - Re: Stored Proc args
... INETA Speaker ... Please reply only to the newsgroup so that others can
benefit. ... This posting is provided "AS IS" with no warranties, ... > that
would allow me to get a list of stored procedures AND the arguments, ... (microsoft.public.dotnet.framework.adonet) - Search Solutions
... After doing a search of the newsgroup (which I should have ... clarify
if these are the only options available today? ... Radically change the stored procedures WSS
uses. ... (microsoft.public.sharepoint.windowsservices)