Viewing 15 posts - 1,021 through 1,035 (of 8,416 total)
The IIF logical function has been added to SQL Server 2012 to ease migration for Access users.
January 23, 2012 at 6:08 pm
djshireman (1/23/2012)
More of a curiosity question than an actual problem.Why can't I use a pre-defined table type as the return from the function?
Currently, user-defined table types are for passing data...
January 23, 2012 at 6:03 pm
You need a separate 'type' column to tell FTS what sort of document is in the binary data. See http://msdn.microsoft.com/en-us/library/ms142499.aspx and the TYPE COLUMN clause of the CREATE FULLTEXT...
January 23, 2012 at 5:52 pm
Please take a look at the differences between this code and your original - there are several learning points in there...
CREATE TABLE dbo.Customer
(
Code ...
January 23, 2012 at 5:19 pm
CREATE TABLE dbo.Customer
(
Code integer NOT NULL PRIMARY KEY,
LastName ...
January 23, 2012 at 5:14 pm
Some new features, for fun (though the execution plan is quite cool too):
ALTER PROCEDURE dbo.IDStatusExists3
@ID integer,
@status integer
AS
BEGIN
SET NOCOUNT...
January 23, 2012 at 12:44 pm
GilaMonster (1/23/2012)
Two problems with that...
Very generous of you to stop at two 😉
(Sorry Lowell).
January 23, 2012 at 12:14 pm
You will find it easier to avoid errors like this if you (a) choose more meaningful table alias names; (b) always include schema names; (c) always include alias names...and so...
January 23, 2012 at 12:11 pm
Alternatively:
CREATE PROCEDURE dbo.IDStatusExists2
@ID integer,
@status integer,
@Result bit OUTPUT
AS
BEGIN
SET NOCOUNT ON;
...
January 23, 2012 at 12:05 pm
The idea behind the requirement worries me - what are you looking to do with the result? Anyway, this is one reasonably efficient way to do what you ask:
CREATE...
January 23, 2012 at 12:00 pm
Dev (1/23/2012)
This should be helpful...Replicating Partitioned Tables and Indexes
Thanks Dev, that is exactly the link Bhuvnesh needs to read.
January 23, 2012 at 7:25 am
MysteryJimbo (1/20/2012)
I was thinking of creating a RAMDisk for this. Never tried it though.
I had a client that used this for tempdb and the full-text catalog, worked well, and...
January 22, 2012 at 10:00 pm
bathawes 16438 (1/19/2012)
January 22, 2012 at 9:49 pm
One of the SQL collations should do what you need. This one works for your sample data:
DECLARE @Apples TABLE
(
sequence integer NOT NULL,
...
January 22, 2012 at 8:36 pm
An alternative, that I find easier to read (and write!):
DECLARE @data TABLE
(
CustomerID integer IDENTITY(1,1) PRIMARY KEY,
LastName ...
January 22, 2012 at 8:01 pm
Viewing 15 posts - 1,021 through 1,035 (of 8,416 total)