Viewing 15 posts - 5,716 through 5,730 (of 8,753 total)
Rune Bivrin (4/7/2015)
The FIRSTROW attribute is not...
April 7, 2015 at 1:02 pm
djj (4/7/2015)
Ed Wagner (4/7/2015)
whereisSQL? (4/7/2015)
Eirikur Eiriksson (4/7/2015)
whereisSQL? (4/7/2015)
Ed Wagner (4/7/2015)
Revenant (4/7/2015)
djj (4/7/2015)
eccentricDBA (4/6/2015)
Eirikur Eiriksson (4/6/2015)
SQLRNNR (4/6/2015)
timberSplinter
Shredder
Raphael
Renaissance
Knight
Bishop
Finger
Salute
Attention
Distraction
Details
April 7, 2015 at 12:55 pm
whereisSQL? (4/7/2015)
Ed Wagner (4/7/2015)
Revenant (4/7/2015)
djj (4/7/2015)
eccentricDBA (4/6/2015)
Eirikur Eiriksson (4/6/2015)
SQLRNNR (4/6/2015)
timberSplinter
Shredder
Raphael
Renaissance
Knight
Bishop
Finger
April 7, 2015 at 11:57 am
Eric M Russell (4/7/2015)
April 7, 2015 at 9:04 am
JustMarie (4/7/2015)
April 7, 2015 at 9:00 am
BOR15K (4/7/2015)
WITH myString AS (
SELECT '001' AS num
UNION ALL
SELECT '002' AS num
UNION ALL
SELECT '003' AS num
UNION ALL
SELECT '001.' AS num
UNION ALL
SELECT '004' AS num
UNION ALL
SELECT '002.' AS...
April 7, 2015 at 8:58 am
Luis Cazares (4/7/2015)
Thank you both for your solutions.
I would be careful using my version if the initial number of digits goes below 5 but hey! you can figure that one...
April 7, 2015 at 8:53 am
sql-lover (4/2/2015)
Eirikur Eiriksson (4/1/2015)
You can use the free version of SQL Sentry Plan Explorer to obfuscate it.😎
I've been using it for several years now, it does not allow you that,...
April 7, 2015 at 1:41 am
Quick, simple and quite efficient solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.History') IS NOT NULL DROP TABLE dbo.History;
CREATE TABLE dbo.History (SnapShotDate DATETIME, UID VARCHAR(10), DUEDATE DATETIME)
INSERT INTO dbo.History VALUES ('03-23-2015','PT-01','2015-04-22')
INSERT INTO dbo.History...
April 7, 2015 at 1:30 am
Use MAX(DATE) and GROUP BY (ID)
😎
April 6, 2015 at 11:30 pm
Quick suggestion, declare a table variable and do an insert-exec, the output of the exec goes in the variable, then discard it.
😎
April 6, 2015 at 11:27 pm
JoshDBGuy (4/6/2015)
Grant Fritchey (4/5/2015)
Jeff Moden (4/4/2015)
krypto69 (4/4/2015)
Grant Fritchey (4/4/2015)
April 6, 2015 at 2:24 pm
t.mounika01 (4/6/2015)
I tried doing the data type conversion using cast but it did not work
You will then have to convert the data type at the source (SQL Server)
😎
April 6, 2015 at 1:49 pm
Luis Cazares (4/6/2015)
April 6, 2015 at 1:46 pm
Viewing 15 posts - 5,716 through 5,730 (of 8,753 total)