Viewing 15 posts - 76 through 90 (of 104 total)
tommyh (3/6/2012)
<cough>referense</cough>/T
Here is:
- Working with Transaction Log Backups -
http://msdn.microsoft.com/en-us/library/ms190440.aspx
😉
March 7, 2012 at 9:53 am
A little bit late, but I expect that still could be of any kind of help.
-- employee
declare @e table
(employeeId int
, hireDate...
March 1, 2012 at 5:11 pm
If your table already have a field with the type of service, only need to add it to the cursor and to your output.
But If you have to calculate...
March 1, 2012 at 4:09 pm
Just yesterday in the SQL Server Central newsletter there is an article of Phil Factor talking about how to automate the scripts generation to migrate tables from one server to...
February 29, 2012 at 10:05 am
I'm afraid you're in troubles. I'll try to explain you this item as clear as my limited english let me do.
The message "The workgroup information file is missing or opened...
February 3, 2012 at 4:28 pm
Cadavre (2/3/2012)
Narud (2/3/2012)
To do this without joins, you can use this deprecated, but still useful sintaxis:
SELECT a.*, b.*
FROM Table1 a, Table2 b
Best regards!
Oh for the love of. . .
1) That...
February 3, 2012 at 2:21 pm
To do this without joins, you can use this deprecated, but still useful sintaxis:
SELECT a.*, b.*
FROM Table1 a, Table2 b
Best regards!
February 3, 2012 at 10:26 am
According to this reference http://msdn.microsoft.com/en-us/library/ms191203.aspx, there are only 3 rules in hierarchy of options. I would like to know from where comes option no. 4?
Option no. 5 should have to...
February 1, 2012 at 9:19 am
This would be another solution:
SELECT [NAME],
CASE WHEN [ID] = 1 THEN [VALUE] ELSE NULL END AS Col1,
CASE WHEN [ID] = 2 THEN [VALUE] ELSE NULL END AS Col2
FROM #Table
I...
January 25, 2012 at 8:26 am
Instead of trim the last character, you can trim the first, using STUFF function:
DECLARE @ColumnListNVARCHAR(MAX)
SET @ColumnList =''
SELECT@ColumnList = @ColumnList + ', ' + CAST(COLUMN_NAME AS VARCHAR(128))
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'TExtras'
ORDER...
January 20, 2012 at 8:10 am
Personally I thing that life doesn't ends with the dead, life could ends before if you don't find nothing to keep on living.
Do you have heard about Ernestine Shepherd? At...
January 13, 2012 at 9:39 am
This will return an extra comma on the right, but trimming it should be an easier task:
select ID,
(case when var1 = 1 then 'var1,' else '' end +
case when...
January 13, 2012 at 9:20 am
Ok, I'm assuming that @date_from and @date_to are of type varchar. If so, you only need to add an space before the hour part in the @temp assingment:
set @temp =...
January 5, 2012 at 9:07 am
Im assuming that @cfrc_id is of type int, If @cfrc_id is null, then you have to compare the field [cfrc_id] with its own value, something redundat but necesary:
WHERE cfrc_id=cfrc_id
Otherwise, you...
January 4, 2012 at 1:17 pm
Altough you can see a resultset when you run a sp, the sp always returns an int value, usually zero if there isn't execution errors.
If you need to handle a...
January 3, 2012 at 9:02 am
Viewing 15 posts - 76 through 90 (of 104 total)