Stored Procedures Questions and Answers

Recent IT Questions

81 - 94 of 94
<<PREVIOUS 1|2|3|4|5 NEXT>>

SQL Server - I would like a stored procedure that will take the name of a table as input.

I would like a stored procedure that will take the name of a table as input. What the procedure would do is drop all indexes on that table except any index that ends with U1 or P1, and save the information on the ones it drops. Then I would like another stored procedure that takes a table name as...

View Answer   |  Mar 18 2008  3:18 PM GMT
SQL Server, Stored Procedures, SQL Server performance
asked by SQL Server Ask the Experts

  2445 pts.

How can I initialize arrays in stored procedures?

How can I initialize arrays in stored procedures?

View Answer   |  Mar 16 2008  10:20 PM GMT
SQL Server, Stored Procedures
asked by SQL Server Ask the Experts

  2445 pts.

Passing a database name as a stored procedure parameter

I would like to be able to pass the name of a database as a parameter to a stored procedure. This db would be used for certain queries and may be different from the db where the stored procedure runs. Is it possible to specify a database name from within the T-SQL of the stored procedure? If so,...

View Answer   |  Mar 11 2008  10:13 PM GMT
T-SQL, Stored Procedures
asked by SQL Server Ask the Experts

  2445 pts.

How can I write a stored procedure to copy data from one database to another database on the same SQL Server, every weekend?

How can I write a stored procedure to copy data from one database to another database on the same SQL Server, every weekend?

View Answer   |  Mar 4 2008  11:39 PM GMT
SQL Server, Stored Procedures
asked by SQL Server Ask the Experts

  2445 pts.

Equivolent SQL Server function for Access DoCmd.TransferText

I need to convert an Access app to SQL Server that has a DoCmd.Transfer command in it. Is there a qay to accomplish this in a stored procedure?

View Answer   |  Mar 3 2008  4:36 PM GMT
Microsoft Access, SQL Server, Stored Procedures
asked by Paul48

  15 pts.

Stored Procedure for dropping indexes

I would like a stored procedure that will take as input the name of a table. Whatthe procedure would do is drop all indexes on that table excpet any index that ends with U1 or P1, and save the information on the ones it drops. Then I would like another strored procedure that takes a table name...

View Answer   |  Feb 28 2008  4:04 PM GMT
Stored Procedures, Restore, DROP
asked by Dangagne

  30 pts.

Msg 102, level 15, State 1, Line 102

I get this with an 'Incorrect syntax' messasge when I run a stored procedure. if I run the 'offending' code in isolation it works fine. If I tidy the code (e.g. remove line feeds etc), the error 'moves' to a different location. HELP!

View Answer   |  Feb 27 2008  12:55 AM GMT
SQL Server, Stored Procedures, SQL Server errors
asked by TonyDyer

  5 pts.

Performance Tracking of Stored Procedures

we have a current system where a COBOL stored procedure is called by a .NET application. This COBOL SP then calls multiple COBOL subprograms which perform calculations and update files and then eventually return a value to the .NET app. We have a limitation in tracking the performance of each...

View Answer   |  Feb 26 2008  7:07 PM GMT
Performance management, COBOL, Performance/Tuning
asked by Pcrum73

  5 pts.

SQL Command

I have created a stored procedure in SQL2000 like this : SELECT p.PO_code,p.Po_date, p.Supp_code + ' : '+ s.Sname as Supp_Nme,p.po_total,r.RC_code,r.Amount FROM PO_list p inner join RC_list r on r.PO_code = p.PO_code inner join Supplier s on s.supp_code = p.supp_code WHERE...

View Answer   |  Jan 31 2008  3:09 AM GMT
T-SQL, SQL Server 2000, Stored Procedures
asked by 2830360

  50 pts.

Problems with sp_send_dbmail in SQL Server 2005

I am trying to convert my stored procedures in SQL 2005 from using xp_smtp_sendmail to using sp_send_dbmail. When I use the "Send Test Email" option in the management studio, I am getting the following error message from the sp_send_dbmail: The mail could not be sent to the recipients because of...

View Answer   |  Jan 10 2008  5:32 PM GMT
Sendmail, Stored Procedures, SQL Server 2005
asked by Randym

  1410 pts.

iseries stored procedure : read character string containing single apostrophe .... ex: Let's

I am working on a stored procedure that requires a literal string to be input into a VARCHAR(1024) variable. My stored procedure has no problem reading the word........... Let''s However, if I try to read the word............Let's, I get a code violation. Do I need to read the string as a...

View Answer   |  Dec 27 2007  11:04 PM GMT
iSeries, Programmers, Stored Procedures
asked by Dsthornton

  5 pts.

MSSQL Stored Procedures

So im in my first year as a programming student and im stumped on a database i need to go alongside its stored procedures. Sorry beforehand if my english isnt that great,its not my native language.Anyways the database(tables) goes like this: Customers(CID,Name,LastName,Telephone) CID being the...

Answer Question   |  Dec 11 2007  10:50 AM GMT
SQL, SQL Server, Stored Procedures
asked by Yrrtni

  5 pts.

import data from access into sql server 2005

hello, I have a large database on ms access with more than 100 tables. I am planning to do migrate this database into ms sqlserver 2005. I am receiving info into database access on a daily basis. so I have to do an auto job to import data from access into sql server 2005. I think that creating a...

View Answer   |  Nov 19 2007  10:30 AM GMT
Migration, Stored Procedures, SQL Server 2005
asked by 77

  15 pts.

USE DATABASE

How can I write a stored procedure which can switch to new databases using something like "use DBASENAME", but without knowing the dbase names before the procedure runs? The example below was my attempt to do this using SP_EXECUTESQL. The reason for this is so that I can call stored procedures...

View Answer   |  Nov 7 2007  1:40 PM GMT
SQL, Database, Stored Procedures
asked by RMIS

  0 pts.

81 - 94 of 94
<<PREVIOUS 1|2|3|4|5 NEXT>>