Viewing 15 posts - 31 through 45 (of 287 total)
If the idea is to simply dump the output to a csv file, the following powershell script will do that for you.
You'll have to parameterize the Query.
invoke-sqlcmd -Query "select...
August 15, 2013 at 7:58 am
A +1 on the Itzik TSql Fundamentals book. Money well worth spending.
August 12, 2013 at 4:48 am
Look up the ROW_NUMBER() Function in Books Online. You can use it to distinguish the rows as you see fit then select the one you want.
If you do choose...
August 1, 2013 at 6:57 am
You should be able to see it from within object explorer in management studio, if that's what you would prefer.
Go to your server node within object explorer -> Databases ->...
July 31, 2013 at 4:22 am
I believe the IDENT_CURRENT Function did exist in Sql Server 2000 but do bear in mind that it will return the last identity value generated for a specified table in...
July 24, 2013 at 4:38 am
matt_garretson (7/23/2013)
July 24, 2013 at 3:46 am
kapil_kk (7/18/2013)
CREATE PROCEDURE sp_MyProcedure
@Record_ID Varchar(12),
@OtherKey_ID Int,
@Comments VARCHAR(MAX) = NULL
AS
BEGIN
DECLARE @DateParameter DATE...
July 18, 2013 at 5:27 am
Here comes a silly question...
What product does SQL Sentry offer that does what the OP requires?
July 18, 2013 at 2:25 am
This is a difficult one to answer without access to your database or a lot more info. on it.
Maybe a database/entity relationship diagram.
Tables can be "related" without "hard coded" Foreign...
June 17, 2013 at 3:40 am
A couple of others:
http://www.haidongji.com/2008/11/20/what-does-syspolicy_purge_history-job-do/
Take a look at the Job Steps for the job then take a look at:
June 13, 2013 at 6:38 am
errr.. actually you want luis's given your requirements.
June 11, 2013 at 9:34 am
DBA24 (6/11/2013)
I am new to tsql coding and I am in the process of adding a piece of code to an already existing stored proc. Here is my code
select @Count1=count(*)...
June 11, 2013 at 9:31 am
As has already been pointed out, nested transactions don't exist in Sql Server.
Infact, all it appears to do is increment or decrement @@TRANCOUNT. I don't believe, it even writes anything...
June 11, 2013 at 7:29 am
Krishna1 (6/11/2013)
create procedure P1 as
begin
while loop
begin
.....
insert into remarks ()
...
June 11, 2013 at 4:59 am
Jeff Moden (6/10/2013)
OTF (6/10/2013)
You can use the RAISERROR Statment with the NO WAIT option to achieve the behaviour you want.You should probably tell the "rest of the story" there. 😉
Darn,...
June 11, 2013 at 3:44 am
Viewing 15 posts - 31 through 45 (of 287 total)