Viewing 15 posts - 91 through 105 (of 194 total)
You could, but you won't have that much flexibility and you can send many parameters to stored procedure, for example you want to search for an object that contains "product"...
July 9, 2015 at 1:30 am
Thanks, that works nicely especially outputing the log to SQL
July 6, 2015 at 11:18 am
General purpose of it is to return object ID based on given name but we use it to check if the object already exists or not before we attempt to...
July 4, 2015 at 12:16 am
I don't think that triggers are evil(full stop), they become evil when written by the wrong people, in the wrong manner and for the wrong reasons.
Your task here is to...
June 26, 2015 at 3:28 am
My Solution:
SELECT A.ID,COUNT(B.SomeColumn) AS [CountOfB]
FROM @T1 A
LEFT JOIN @T2 B ON B.SomeColumn = A.ID
LEFT JOIN @T2 B2 ON B2.AnotherC = A.ID
GROUP BY A.ID
That should perform better and as it...
June 25, 2015 at 12:13 pm
Why you are using SUM and CASE to count not null rows? Just use COUNT instead on a specyfic column and you will have same result:
DECLARE @T1 TABLE (ID INT)
DECLARE...
June 25, 2015 at 8:47 am
i think you should first find out why someone would want to combine those two stored procs and base on that set some rules on what to do depending on...
June 24, 2015 at 3:14 am
1. You should be able to do all of it assuming the sql / agent account has the relevant access to the backup/restore folders.
2. If you have the relevant premissions...
June 23, 2015 at 1:09 am
Thats the closest i could get, I'm quite sure there's a better way of doing it but couldn't think of anything else ATM.
SELECT CONVERT(XML, '
<CustomerAccounts TransactionTimeStamp="2015-04-01T10:50:00Z" PageNumber="1" PageSize="500" EndOfFile="true" CreatedLanguage="EN">'...
June 22, 2015 at 2:49 am
you can use xp_cmdshell proc to run a command in command prompt.
EXEC xp_cmdshell 'bcp "SELECT * FROM database.dbo.table1" queryout "C:\Folder\TextFile.txt" -t, -c -S .\SQLEXPRESS -U user -P password'
June 18, 2015 at 1:59 am
you can use bcp command in command prompt or place the script in a batch file to do that i.e.:
bcp "select * from t1" queryout TextFile.txt -t, -c -S .\SQLINSTANCE...
June 18, 2015 at 1:43 am
it might be that the oledb destination task can not connect to destination and validate it. check your oledb connection in connection manager that is being used by this task...
June 16, 2015 at 12:57 am
Nice article to read on Monday morning.
Thanks Gail
June 8, 2015 at 1:23 am
Anshul.P (5/26/2015)
Here is one more option which you can use.Using Merge in SSIS -
https://itssmee.wordpress.com/2010/10/03/ssis-insert-and-update-rows-in-a-table-based-on-the-contents-of-a-excel-file/[/url]
Just be careful when using Ole DB Command as it processes a single row at a...
May 26, 2015 at 1:54 am
Viewing 15 posts - 91 through 105 (of 194 total)