Viewing 15 posts - 316 through 330 (of 1,109 total)
T-SQL has bitwise operations (& | ...) so you could use that, and just specify such an expression in your where clause.
Regards,
Andras
March 20, 2008 at 3:59 am
a very simple (but may not be the best) workaround:
create a table with the days like:
CREATE TABLE days (dayname CHAR(3) PRIMARY KEY)
INSERT INTO days VALUES ('MON')
INSERT INTO days VALUES ('TUE')
INSERT...
March 20, 2008 at 3:50 am
Hi James,
have a look at http://msdn2.microsoft.com/en-us/library/aa902656(SQL.80).aspx#sql2k_replperf_tran4_topic05a
and look at the section "Cost of Transactional Replication at the Publisher"
Regards,
Andras
March 20, 2008 at 3:39 am
Probably the most important question: Would you enjoy doing an MS or the type of work that it can lead to? We live only once 🙂
It is true that an...
March 20, 2008 at 3:35 am
Chirag (3/20/2008)
What i really wanted to know was about execution plans.
I believe that dropping and recreating the stored procedures
will drop the existing executions plans of the stored procedures and...
March 20, 2008 at 3:23 am
peer_mohamed2k (3/19/2008)
Hi,Which table will give better and faster result either @table or #table when using in stored procedure?
Thanks,
Peer Md.
Have a look at http://support.microsoft.com/?kbid=305977
There are some differences that will affect performance...
March 20, 2008 at 2:39 am
on the right hand side of your comparisons in the where clause (DATEADD(DAY, -1, DATEDIFF(DAY, 0, convert(varchar(10),getdate(),101))))) you get a date and the time part of it will be 0:0:0.0
On...
March 19, 2008 at 3:00 am
A clustered index determines the order in which data is stored in the database files on disk. You cannot store the same data in the same file in two different...
March 19, 2008 at 2:50 am
gk (3/18/2008)
I am new to this SQL Server stuff.
The following link tells little more about traceon
http://msdn2.microsoft.com/en-us/library/ms187329.aspx
I wish to know what are the values that can be passed on for...
March 18, 2008 at 1:58 pm
Don Cooper (3/18/2008)
I initially found reference to it at http://www.sqlcommunity.com/default.aspx?tabid=77&id=211. Additional information was found using the Help / Search w/in SQL Management Studio.
Do note that this is an Enterprise/Developer edition...
March 18, 2008 at 7:42 am
Jeff Moden (3/18/2008)
VARDECIMAL OPTION? Where did you find that? I can't even find it in Books Online... Is it a database setting or ???
Hi Jeff,
it was introduced...
March 18, 2008 at 7:39 am
Don Cooper (3/18/2008)
Does 2005's (sp2) vardecimal option have any affect on "money" type fields?
No, it only affects the numeric and the decimal datatypes.
Regards,
Andras
March 18, 2008 at 7:38 am
ezhil (3/17/2008)
What is the difference between Some and Any Operator. In most web pages, they mentioned both are equivalent.If both are equivalent, what is the need of this two Operator?
The...
March 17, 2008 at 4:54 am
Ok, a version that does something (although it is weird, you do assume that the id column is an identity column for exmaple) is:
ALTER PROCEDURE [dbo].[TableRowCopy]
(...
March 14, 2008 at 9:27 am
Another thing in your query is the
where TABLE_NAME = 'Ltrim(RTRIM(@TableName))'
and column_name <> 'Ltrim(RTRIM((@IdColumname))'
First, you are checking if the table name is the string "Ltrim(RTRIM(@TableName))". Rather uncommon names for a...
March 14, 2008 at 9:23 am
Viewing 15 posts - 316 through 330 (of 1,109 total)