Viewing 15 posts - 8,371 through 8,385 (of 8,761 total)
AndrewSQLDBA (5/6/2014)
Hello EveryoneI hope that you are having a very nice day.
BTW: Yes a jolly good day! 😀
May 6, 2014 at 10:52 am
You can use the Window functions
😎
DECLARE @ColorList TABLE
(
CarID float
, ColorID int
)
INSERT INTO @ColorList
SELECT 1.55948815793043E+15, 9 UNION ALL
SELECT 1.55948815793043E+15, 27 UNION ALL
SELECT 1.62851796905743E+15, NULL UNION ALL
SELECT 1.62851796905743E+15, 27 UNION ALL
SELECT 1.62851796905743E+15,...
May 6, 2014 at 10:51 am
ChrisM@Work (5/6/2014)
PIVOT / UNPIVOT haven't been told about the output column limitation of SELECT
Out of curiosity, which server version and which SSMS version?
BTW: nice! 😎
May 6, 2014 at 10:08 am
According to Celko, "Machine-level things like a BIT or BYTE data type have no place in SQL."
😎
May 6, 2014 at 6:47 am
You may want to look at this first, Maximum Capacity Specifications for SQL Server, and maybe rethink the approach.
😎
May 6, 2014 at 6:18 am
KGJ-Dev (5/6/2014)
May 6, 2014 at 6:01 am
So it accurately holds zero, but zero is not a real number.....?
😎
May 6, 2014 at 3:34 am
Cannot consider bit to be an integer datatype, more like a flag, kind of "fingers or no fingers" instead of "how many fingers".
😎
DECLARE @FIRST_BIT BIT = 1;
DECLARE @NEXT_BIT ...
May 6, 2014 at 3:26 am
nonghead-webspam (5/2/2014)
I'm trying to create an expression for a flat file connector connection string. I'm in SSIS 2008. here's the code:
"G:\Operations\DATA\SSIS\AST\" +@[User::FileName_Prefix] +
@[User::FileName_Region] +
@[User::FileName_Timestamp] +
".txt"
Almost there, just missing...
May 6, 2014 at 2:05 am
First a quick question, why the dirty read (READ UNCOMMITTED)?
Without more information such as execution plans, view code, schema structure etc., it is hard to tell what the problem is.
😎
May 6, 2014 at 1:50 am
Thank you for this William, very useful!
😎
May 5, 2014 at 11:06 pm
Take a look at this article, Script to create dynamic PIVOT queries in SQL Server[/url]. It should have what you need.
😎
May 5, 2014 at 10:39 pm
Good question, thanks!
Did think a bit for a second:-D
May 5, 2014 at 10:18 pm
Viewing 15 posts - 8,371 through 8,385 (of 8,761 total)