Viewing 15 posts - 5,836 through 5,850 (of 8,731 total)
Maybe something like this:
WITH SampleData AS(
SELECT 1 n UNION ALL
SELECT 2 n UNION ALL
SELECT 3 n UNION ALL
...
September 11, 2014 at 3:02 pm
Ed Wagner (9/11/2014)
September 11, 2014 at 2:54 pm
Thank you, Tom.
I guess I shouldn't have taken the quote from Wikipedia. My mistake.
PS. It's great that you can create cables on SQL :-D:hehe:
September 11, 2014 at 2:50 pm
Your little example is really nice, real life isn't like that.
Please find the errors in the following code:
INSERT INTO dbo.FactInternetSalesCopy
(ProductKey, OrderDateKey, DueDateKey, ShipDateKey, CustomerKey, PromotionKey, CurrencyKey,
...
September 11, 2014 at 2:17 pm
If my guessing skills are working fine, you want a result set which in some coding languages is called a cursor. A cursor in SQL Server is very different and...
September 11, 2014 at 10:14 am
If you're interested on having help in the same place for front and back end, you might want to use SQL Server with visual studio and take a look at...
September 11, 2014 at 9:02 am
CELKO (9/11/2014)
September 11, 2014 at 8:28 am
SimonHolzman (9/10/2014)
Alan.B (9/9/2014)
IF @user > '' --This checks for not null and not empty
Please don't do this... It's one of the things that drove me crazy with c programmers -...
September 10, 2014 at 5:57 pm
Eugene Elutin (9/10/2014)
Alan.B (9/9/2014)
Cool. I never knew you could do that, very interesting :laugh:
Edit: sql code tag messed up...
September 10, 2014 at 2:11 pm
Are you seeing (ampersand)gt(semicolon)? That's a "greater than" sign showed like that by this site. You should use the normal sign in your query.
If you see the "greater than" sign,...
September 9, 2014 at 7:59 pm
To complement what David said, you need to use AND instead of OR.
Of course, you could go with the simple way of doing it.
declare @user varchar(30) = ''
IF @user >...
September 9, 2014 at 7:39 pm
You're right.
But with no question, there's no wrong answer. 😀
"If you don't know where you are going, any road will get you there." - Lewis Carroll
September 9, 2014 at 1:08 pm
You need to use 2 data flow tasks.
September 9, 2014 at 11:54 am
New Born DBA (9/9/2014)
Luis Cazares (9/9/2014)
On a server? Are you serious?:w00t:
Yes on the server. I asked one of co-worker to RDP into the server and kick me out but he...
September 9, 2014 at 10:47 am
Here's an option to read the table once based on Tom's post and cross tabs.
with number as (select Exam_id
, row_number() over (partition by exam_id order by ([time])) NUM
...
September 9, 2014 at 8:36 am
Viewing 15 posts - 5,836 through 5,850 (of 8,731 total)