Viewing 15 posts - 5,926 through 5,940 (of 8,761 total)
Quick and simple solution, the problem is trivial if broken down into iteration by the different orders of magnitude, that is 1000 => 1 - 9, 100 => 1 -...
March 29, 2015 at 1:18 am
mahikero (3/28/2015)
If I try to connect to ServerName\I01, I get the error below.
"A network-related or instance-specific error occured while establishing a connection to SQL Server.
The server was not found...
March 29, 2015 at 12:34 am
Quick thought, you may want to re-think the error handling in the stored procedure, consider this code
😎
USE tempdb;
GO
SET NOCOUNT ON;
GO
IF OBJECT_ID(N'dbo.TBL_SAMPLE_RESULT') IS NOT NULL DROP TABLE dbo.TBL_SAMPLE_RESULT;
CREATE TABLE dbo.TBL_SAMPLE_RESULT
(
...
March 28, 2015 at 6:47 am
Jeff Moden (3/27/2015)
ScottPletcher (3/27/2015)
Eirikur Eiriksson (3/27/2015)
ScottPletcher (3/27/2015)
Just add them and SQL will implicitly convert the varchar to a datetime anyway:SELECT datetime_column + time_varchar AS new_datetime, ...
FROM ...
Until the locale driven...
March 28, 2015 at 4:36 am
Quick point, there is a hidden speed trap in the XML concatination, consider this code
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_SAMPLE_DIAG') IS NOT NULL DROP TABLE dbo.TBL_SAMPLE_DIAG;
CREATE TABLE dbo.TBL_SAMPLE_DIAG
(
...
March 28, 2015 at 3:25 am
ScottPletcher (3/27/2015)
Just add them and SQL will implicitly convert the varchar to a datetime anyway:SELECT datetime_column + time_varchar AS new_datetime, ...
FROM ...
Until the locale driven implicit conversion starts to produce...
March 27, 2015 at 10:24 am
SQLRNNR (3/27/2015)
Brandie Tarvin (3/27/2015)
Eirikur Eiriksson (3/27/2015)
My Friday fun version:rolleyes:
IF EXISTS (SELECT 1 FROM (VALUES(CAST(1 AS BIT))) d (n)) SELECT 1 FROM sys.all_columns X,sys.columns Y,sys.computed_columns Z
AWESOME!!!!!!!
Yes you can certainly get a...
March 27, 2015 at 10:15 am
Luis Cazares (3/27/2015)
Starting on April 21st I'll be working in the US. I'll make a stop at...
March 27, 2015 at 10:14 am
ChrisM@Work (3/27/2015)
March 27, 2015 at 10:07 am
djj (3/27/2015)
whereisSQL? (3/27/2015)
SQLRNNR (3/27/2015)
retrievergolden
Doodle
Dandy
March 27, 2015 at 9:04 am
djj (3/27/2015)
jasona.work (3/27/2015)
Unless you've got some project going on that can be worked on when 50+% of the staff is off, you spend a good...
March 27, 2015 at 8:59 am
jasona.work (3/27/2015)
Unless you've got some project going on that can be worked on when 50+% of the staff is off, you spend a good chunk...
March 27, 2015 at 8:58 am
My Friday fun version:rolleyes:
IF EXISTS (SELECT 1 FROM (VALUES(CAST(1 AS BIT))) d (n)) SELECT 1 FROM sys.all_columns X,sys.columns Y,sys.computed_columns Z
March 27, 2015 at 8:48 am
Ells (3/27/2015)
is there...
March 27, 2015 at 5:38 am
Viewing 15 posts - 5,926 through 5,940 (of 8,761 total)