Viewing 15 posts - 466 through 480 (of 670 total)
removed to avoid confusion
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 25, 2010 at 6:36 am
Jeff Moden (8/24/2010)
Mike01 (8/13/2010)
How about using a CTE?Mike... 2k forum. 🙂
Sorry about that. Didn't realize 🙁
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 25, 2010 at 5:57 am
Are the results hardcoded like that for specific CustomerCodes? I put my Customer data in a table with start and end dates. The code you specified is updating...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 24, 2010 at 10:33 am
If you run this code manually, does it do what you expect it to do?
exec ril_actuals_exceeding_budget_mail
if not, can you provide the code for that?
what shows up in RIL_Mail_Execution_report values...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 24, 2010 at 9:27 am
When you loose network connectivity, you won't be able to get to the Oracle DB to update it. You won't be able to get anywhere on the network. ...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 24, 2010 at 8:53 am
From the little sampling of data you provided, it looks like the script is doing exactly what you want it to do. The first Select..Into clause is using the...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 24, 2010 at 8:45 am
As long as you have access to the other databases, you can run
SELECT distinct o.id, s.Name as 'Procedure_Schema', o.name AS 'Procedure_Name' ,
...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 24, 2010 at 6:25 am
try this
declare @a TABLE (
AppointmentID int IDENTITY(1,1) NOT NULL,
ClientNumber int NULL,
...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 23, 2010 at 7:17 am
Try using sys.schemas
SELECT distinct o.id, s.Name as 'Procedure_Schema', o.name AS 'Procedure_Name' ,
ss.Name as 'Table_Name', oo.name AS 'Table_Name', d.depid
FROM sysdepends d
inner join sysobjects o
on...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 23, 2010 at 7:02 am
You'll have to use dynamic SQL. You can read information_Schema.columns for the table_name to get the columns. Then you can dynamically build the select syntax. Be careful...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 23, 2010 at 6:49 am
What are you trying to do? Your last OpenXML statement returns data. What are the expected results?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 19, 2010 at 1:23 pm
take a look at msdb.dbo.backupset
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 17, 2010 at 9:20 am
It is running the procedure from start to end. The FMTOnly value is set to OFF by default. So your code will run from start to finish. ...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 16, 2010 at 10:06 am
I agree with Eugene. If we can get a sense of the whole picture, we would have a better change of providing a more efficient set-based solution. What...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 16, 2010 at 9:58 am
There's a couple of things wrong with this.
First is when setting the database name variable, it will error out if more than one is found.
Second, you...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
August 13, 2010 at 10:02 am
Viewing 15 posts - 466 through 480 (of 670 total)