Viewing 15 posts - 6,631 through 6,645 (of 15,381 total)
pjcafonso (10/3/2013)
I have the following table:
CREATE TABLE usTab1
(
Col1 INT IDENTITY(1,1) NOT NULL PRIMARY KEY,
Col2 Tinyint DEFAULT (0) NOT NULL,
...
October 3, 2013 at 12:09 pm
a_car11 (10/3/2013)
It gives:"Error: [SQL0171] Argument 1 of function CASE not valid."
Are you using sql server? That is not an error I have seen in SQL server.
What is the actual code...
October 3, 2013 at 12:06 pm
a_car11 (10/3/2013)
Thanks for your replay, but it still returns empty values for all results even when I have data in the "date" ( the column name "date"...
October 3, 2013 at 9:29 am
a_car11 (10/3/2013)
October 3, 2013 at 9:13 am
Brandie Tarvin (10/3/2013)
And now that Sean has done that, I'm about to have a coronary.Why oh why are you using uncorrelated (stand-alone) subqueries in the SELECT statement?
:w00t:
I know what you...
October 3, 2013 at 8:11 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
October 3, 2013 at 7:56 am
Your "inline" function #2 is basically the same thing as a scalar function. It is multiple line function which means it behaves the same way. In fact, many time a...
October 3, 2013 at 7:25 am
santhosh411 (10/2/2013)
Hello All,How to archive the entire database in SQL Server 2008r2
Thanks,
Santosh
Have you tried google? I typed in your question EXACTLY and the very first hit in google is what...
October 2, 2013 at 2:21 pm
rocky_498 (10/2/2013)
Yes 98% same except-- Raise an error and return
RAISERROR ('Error in SP.', 16, 1)
RETURN
Thank You For your help!
You are welcome. You really don't need the RETURN in there...
October 2, 2013 at 2:19 pm
rocky_498 (10/2/2013)
Alter MYSP
Begin transaction
Begin Try
1st Insert Statement
2nd Insert Statement
1st Update Statement
commit transaction
end try
begin catch
rollback transaction
-- Raise an error and return
RAISERROR ('Error...
October 2, 2013 at 1:27 pm
Since you are posting in the 2008 forum I will assume you are using 2008 or later. Don't use @@error, it is more difficult to work with and the code...
October 2, 2013 at 12:59 pm
It is absolutely possible to do in sql. This article explains how to generate comma separated lists.
http://www.sqlservercentral.com/articles/71700/%5B/url%5D
If you need coding assistance, we will need a few things:
1. Sample DDL in...
October 2, 2013 at 12:55 pm
Most likely you need to change your cursor location to adUseServer.
Also, NEVER NEVER NEVER post you actual connection information to a public forum. I would advise you to change your...
October 2, 2013 at 10:21 am
You should take a look at this article. It explains how to do this type of query and keep the performance acceptable.
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/%5B/url%5D
--EDIT--
NVM. I missed the RECOMPILE in there when I...
October 2, 2013 at 8:36 am
Jeff Moden (10/2/2013)
Koen Verbeeck (10/2/2013)
On topic:http://www.sqlservercentral.com/Forums/Topic1500646-1292-1.aspx
Oh my. I hope that's not what they're teaching in "university" now. :sick:
If you have read any of the other posts by that person...
October 2, 2013 at 8:30 am
Viewing 15 posts - 6,631 through 6,645 (of 15,381 total)