Viewing 15 posts - 8,926 through 8,940 (of 15,381 total)
Since sp_msforeachdb and the good code posted by Erin both are cursors I figured I would take a shot at doing this without a cursor. This code should also work....
March 26, 2013 at 12:53 pm
No problem Jim. Glad you figured it out. I will be happy to help you in the future. I can't speak for Chris but I am pretty sure he will...
March 26, 2013 at 12:25 pm
ravi@sql (3/26/2013)
select @i=id+1 from user;
select @i
/* here id is an identity column*/
2) select @i=max(id)+1 from user;
...
March 26, 2013 at 10:53 am
JimS-Indy (3/26/2013)
I included the WOError table data above. In all cases, the VendorID in the WOError table matches a tblVendor. In all cases, the TimesheetID refers to a valid tblTimesheetMaster...
March 26, 2013 at 10:44 am
Then as Chris eluded to we are going to need ddl and sample data in addition to desired output as outlined by the article found at the first link in...
March 26, 2013 at 9:25 am
The script here should get you started.
http://stackoverflow.com/questions/1987190/scripting-sql-server-permissions
March 26, 2013 at 9:14 am
ByronOne (3/26/2013)
I'm going with the original (correct and...
March 26, 2013 at 8:59 am
What about order by clauses? Are there clustered indexes on these tables?
March 26, 2013 at 8:18 am
ByronOne (3/26/2013)
I want to sum the PlannedSales then multiply by the factor increase. However I'm getting an error which says I can't have an aggregate in an update...
March 26, 2013 at 8:14 am
nitin_456 (3/25/2013)
So the idea here is to Generate 2 -3 million consecutive unique numbers by using 5 Alpha Numeric digit. Please if you can help around this will be great.
I...
March 26, 2013 at 8:09 am
I will help you but first you have to help me. Please take a few minutes and read the first article in my signature for best practices when posting questions....
March 26, 2013 at 8:00 am
The solution that MickyT posted looks like it will probably work for the short term. I can tell you from experience that if business is offering quantity discounts currently, they...
March 26, 2013 at 7:56 am
Kingston Dhasian (3/26/2013)
You can then copy the results and use them in your SELECT statement
SELECTCOLUMN_NAME + ','
FROMINFORMATION_SCHEMA.COLUMNS
WHERETABLE_NAME...
March 26, 2013 at 7:53 am
You really only need two queries for this. Your second and third queries can be easily combined into a single query like this.
SELECT
AcctNo
VirtualName,
Capbal,
VadareRate,
PilPlan,
LoadDate,
case
when LoadDate > getdate() then 'Active'
else 'Inactive'
end...
March 26, 2013 at 7:35 am
Can you use CLR? This type of heavy string manipulation is probably going to be a lot easier to work with in .NET instead of pure t-sql.
March 25, 2013 at 2:19 pm
Viewing 15 posts - 8,926 through 8,940 (of 15,381 total)