|
From SQL Enterprise Manager, select your server instance and go to
Management -> SQL Server Agent -> Jobs
right click "New Job"
write your SQL query under "step"
then schedule the job
Regards
KP
|
|
|
|
|
Hi everyone,
Does anyone know of an easy way or trick to switch between System.Data.OracleClient and System.Data.SqlClient (and later MySQL's .NET Connector)? I want to give the user the choice of database to use without writing the same database code twice - once for each type of database.
I appreciate all comments or ideas. Thanks!
|
|
|
|
|
Why not use the OleDB classes, which should work for all of those but will be optimised for none ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: OleDB classes
I heard oledb and odbc adds an extra processing to the communication and makes it slow. What do you think ?
|
|
|
|
|
I doubt that, I suspect it just means a standard ODBC connection is used instead of an optimised one. But, if he wants to change DBs, then that seems like a simple way to do it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ignorance would be the reason.
Thanks a lot!
|
|
|
|
|
Classes like SQLConnection ,OracleConnection and MySQLConnection (.NET connector) are derived from abstract DbConnection class. All the command classes are derived from DbCommand class. So if your data layer uses these and uses a provider model, changing data store would be easy. Colin has written something here[^] which is worth reading.
|
|
|
|
|
Thanks for that and the link.
|
|
|
|
|
I am using the 2005 Edition and I couldn't find a simple "books online" like in the 200 Edition where it gives you basic syntax and code examples.
So I was wondering, is there a way to download the 2000 books online as a document or a stand alone piece of software that doesn't need me to overwrite anything in 2005?
Thanks
modified on Tuesday, May 6, 2008 5:27 AM
|
|
|
|
|
If you install a named instance of 2000, it won't interfere with 2005.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
I need to roll back a stored procedure because just altered, By mistake. I need to change the Stored procedure to older version.
I don't have back up of that SP.
Please let me know what should i do?
D.Willington
|
|
|
|
|
Restore from database backup - you do have one don't you?
Restore from your source control system?
Otherwise you are out of luck, SQL does not do versioning.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hi Bob
Thanks for your help.
Regards,
Willington.d
D.Willington
|
|
|
|
|
No problem, but I bet its not what you were hoping for
Bob
Ashfield Consultants Ltd
|
|
|
|
|
There was some discussion in the Lounge yesterday qualifying for DailyWTF indicating a delete statement without a where condition.
People are so stingy to maintain db backups and repent only when disaster strikes.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi all,
i have one doubt , i want to export stored procedures data from sqlserver2000 to ms access, give me any idea .
thanks & regards
sarp
sarp
|
|
|
|
|
You will probably need to rewrite them as Access does not use the same syntax as SQL Server in many instances.
You can export stored procs from enterprise manager by scripting them as create, but I doubt it will help.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
The SQL to Access transition would relatively require a manual intervention at least with respect to Stored Procedures.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi! i have an in_tblxyz on the table tblxyz (non-clustered). i want to add, delete, or rearrange columns in this index. can any one help me?
|
|
|
|
|
You need to drop and recreate the index with the columns you require. You cannot change an index.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks. I'm using DROP_EXISTING = ON to modifying existing indexes. it first delete the existing index & then creates a new.
|
|
|
|
|
No problem, pleased I could point you in the right direction
Bob
Ashfield Consultants Ltd
|
|
|
|
|
whats the best book for sql for mysql
|
|
|
|
|
MySQL has books ? I thought it was all online help because it's all free ?
You'd do better if you used an intelligent subject, so people browsing who know the answer, have an idea to look at your question.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|