Viewing 15 posts - 721 through 735 (of 927 total)
Import Data from in a Table
Then do something like this
Declare @v_Query nvarchar(max) = ''
Select @v_Query = @v_Query + [ColName] +' ;'
from [Excel_Table]
EXEC sp_executesql @v_Query
@v_Query
this will execute your all queries...
February 19, 2014 at 3:34 am
WHERE 1=1
AND 1=1
AND NOT ('A' LIKE '%Z%'
AND J1.JRNAL_SRCE IN ('B/F',
...
February 18, 2014 at 12:57 am
[h3]1st Clause:[/h3]
CASE 1
WHEN 1 THEN 'A'
ELSE J1.AC_CODE
END
This code will always return 'A' , query can be write above syntax like this
CASE when 1= 1 then 'A' else...
February 17, 2014 at 11:51 pm
WITH C
AS (
select 'Draft' as auditedAreaDescription, 'A23' as auditId
union select 'Activity1' as auditedAreaDescription, 'A24' as auditId
union select 'Activity2' as auditedAreaDescription, 'A24' as auditId
union select 'Demo' as auditedAreaDescription, 'A25' as...
February 17, 2014 at 11:06 pm
doing select * from will always get you in trouble, it is a bad practice, you should always use
select columnName from to avoid this issue
hope it helps
February 17, 2014 at 10:56 pm
this link will help you to get subtotals and grand totals
http://www.sqlusa.com/bestpractices2005/subtotaltotalgrandtotal/
February 17, 2014 at 5:46 am
did you check store procedure execution time on the source server i-e how much time it takes to execute ?
February 17, 2014 at 5:39 am
Jeff Moden (2/17/2014)
twin.devil (2/17/2014)
let say u have check number in table 1 that i-e "12012410"
and
you have check number in...
February 17, 2014 at 5:17 am
you can check few things before joining these two tables
let say u have check number in table 1 that i-e "12012410"
and
you have check number in table 2 that...
February 17, 2014 at 12:37 am
Phil Parkin (2/14/2014)
twin.devil (2/14/2014)
2. you can parse the file in script manager, ...
What do you mean by this?
Sorry, i meant to say is "Script Component" instead of "script manager".
February 14, 2014 at 6:24 am
1st of all i totally agreed with Phil.
but most of the time ... they say ... there is no issue in it 😛
here are couple of things you can...
February 14, 2014 at 5:19 am
February 14, 2014 at 5:07 am
is it a virtual server or a physical server ?
try this
The problem might be firewall, but more specifically the firewall rule for SQL SERVER.
The custom rule could be...
February 14, 2014 at 4:47 am
what error you are getting while connecting to 2012 instance.
February 14, 2014 at 4:38 am
Viewing 15 posts - 721 through 735 (of 927 total)