Viewing 15 posts - 27,616 through 27,630 (of 59,101 total)
Thanks for the feedback. But, remember, this was supposed to be done in a job with multiple steps without the use of SSIS. The global variables there do...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2013 at 4:20 pm
BillyJack (1/23/2013)
long_shanks64 (1/23/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2013 at 4:15 pm
Sql Student-446896 (1/25/2013)
I have a beginning Year and a End year and i have to compute/create a string based on the given years.
Example:
Input: BegYr = 2013 and EndYr = 2015
Output:...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2013 at 12:18 am
C'mon, folks! Just look at the mess of code that a While loop makes for this! No one should be writing a While Loop for this!
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2013 at 12:16 am
My personal opinion is that if you're not going to persist a calculated column, write a derived table or view, instead. That way, no one can screw up and...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2013 at 12:07 am
No need for CASE here at all.
SELECT Name,
Total = ISNULL(Salary,0) + ISNULL(Bonuses,0)
FROM dbo.YourTable
;
If you insist on ANSI/ISO code,...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2013 at 11:55 pm
It would appear that a table variable is being populated based on a While Loop. The While Loop is based on the comma separated values that come in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2013 at 11:46 pm
Sure... open task manager and see what's using all of that CPU. If it IS actually SQL Server, then you probably have a "busted spid" trying to do a...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 9:12 pm
andy.westgate (1/25/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 9:06 pm
mani@123 (1/22/2013)
declare @svrName varchar(255)
declare @sql varchar(400)
--by default it will take the current server name, we can the set the server name as well
set @svrName = @@SERVERNAME
[font="Arial Black"]set @sql = 'powershell.exe...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 8:12 pm
Phil Factor (1/26/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 8:04 pm
Jim P. (1/26/2013)
It is the incompetent DBA that...
Let's put some quality back in the title of "DBA". Whether they have the actual title or not, there are actually no...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 8:01 pm
Long time no see, ST.
Who is the actual database owned by? If it's (hopefully) someone with "SA" privs, try adding WITH EXECUTE AS OWNER to the stored procedure...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 7:49 pm
arthi.anan (1/21/2013)
I generated the ER diagrams but the tables are listed individually [font="Arial Black"]without any connectivity among them[/font].
Do you have any Foreign Keys between the tables? If not, you're...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 7:38 pm
ekant_alone (1/25/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 26, 2013 at 7:11 pm
Viewing 15 posts - 27,616 through 27,630 (of 59,101 total)