Viewing 15 posts - 2,866 through 2,880 (of 13,460 total)
hunchback (11/26/2013)
WHERE ...
...
Lowell
November 26, 2013 at 9:20 am
ok, a kewl sneaky way taking advantage of parsename
Declare @TableName varchar(128) ='ABCD_kkk_DDD'
SELECT PARSENAME(REPLACE(@TableName,'_','.'),2)
and the long drawn out way:
Declare @TableName varchar(128) ='ABCD_kkk_DDD'
SELECT SUBSTRING(@TableName,0,CHARINDEX('_',@TableName)) As Pt1,
REPLACE(@TableName,SUBSTRING(@TableName,0,CHARINDEX('_',@TableName))+'_','') As Inprogress,
SUBSTRING(REPLACE(@TableName,SUBSTRING(@TableName,0,CHARINDEX('_',@TableName))+'_',''),0,CHARINDEX('_',REPLACE(@TableName,SUBSTRING(@TableName,0,CHARINDEX('_',@TableName))+'_','')))
As Part2
Lowell
November 26, 2013 at 7:25 am
there's nothing wrong with receiving that warning; some of the data you are looking at is null, and that's normal; some data has never been updated, only origianlly inserted is...
Lowell
November 26, 2013 at 6:34 am
as far as i know, if you try to run chkdsk on a disk that is active in any way, it will tell you it cannot do it.
if it was...
Lowell
November 26, 2013 at 6:21 am
test for the data with an exists:
IF EXISTS( SELECT 1 from test1 WHERE sl_code=@cd AND DATEDIFF(DAY,doc_dt,GETDATE())=0) )
BEGIN
DECLARE @htmlbody VARCHAR(4000)
SET @htmlbody = 'This is a Simple Email...
Lowell
November 26, 2013 at 6:04 am
vignesh.ms (11/26/2013)
I need to ensure some naming standards to users while creating tables.
All table name should be in same pattern
(ie., ) TeamName_EmpId_tablename
I need a way to restrict...
Lowell
November 26, 2013 at 5:59 am
sorry, no loop required;
you need to create a semicolon delimited list of the files, including the full path.
this worked for me:
CREATE TABLE #files(File_Name varchar(200), depth int, fil int)
INSERT #files
EXEC master.dbo.xp_dirtree...
Lowell
November 25, 2013 at 2:31 pm
i see how to show/hide columns based on wether they are exported or not here:
but i don't see how to filter based on the export type yet.
Lowell
November 25, 2013 at 2:23 pm
Skypass (11/25/2013)
How do I attach all files in a network folder to an e-mail (without zipping) using sp_send_dbmail.
The names and number of files in the folder will keep changing. ...
Lowell
November 25, 2013 at 2:02 pm
this link will probably help enourmously, and keep you from granting sysadmin rights when it's not required:
Microsoft.com:Configure a User to Create and Manage SQL Server Agent Jobs
Lowell
November 25, 2013 at 1:52 pm
ScottPletcher (11/25/2013)
Capture the values at the start time, then recapture them at any subsequent time, subtract the two values, and voila, you have the mods that occurred during...
Lowell
November 25, 2013 at 1:43 pm
john.chiu (11/25/2013)
Lowell
November 25, 2013 at 1:22 pm
hoolash (11/25/2013)
I have a JOIN query that selects data from 3 specific tables, using a common field called "ReservationID". The column I am pulling from one of the tables...
Lowell
November 25, 2013 at 1:02 pm
yes it is on the Oracle side; because of the _TS (_TIMESTAMP?) i think that it's the timestamp datatype issue.
pretty sure you can also resolve this by convertint the value...
Lowell
November 25, 2013 at 12:32 pm
Aatish Patel (11/25/2013)
When I try to query
SELECT top 10 * FROM...
Lowell
November 25, 2013 at 11:31 am
Viewing 15 posts - 2,866 through 2,880 (of 13,460 total)