Viewing 15 posts - 1,321 through 1,335 (of 1,539 total)
though i liked the solution provided in the previous post, here is another version..
select * from mytable where convert(varchar(6),datecolumn,112) between '200701' and '200702'
and convert(varchar(2), datecolumn, 108) between '20' and...
January 2, 2009 at 1:15 am
create table #test
(
col1 varchar(100),
col2 varchar(100)
)
create proc addCol @tabname varchar(100),@colName varchar(100), @dataType varchar(100)
AS
declare @sql as varchar(500)
set @sql='alter table ' + @tabname + ' add ' + @colname + '...
January 2, 2009 at 12:51 am
and the data type varchar2....
may be u'll also need NVL2 as well... as mentioned cast and convert needs to be replaced with specifics like to_string, to_Date, to_number etc...
There are...
December 31, 2008 at 7:13 pm
The trickiest part of the editorial is
Anyone want to guess how many cell phones I'll purchase in 2009? I had 5 in 2008.
I guess it'll be less than that...
I bought...
December 31, 2008 at 7:04 pm
we dont have double post. we've 5 posts on the same topic!!
December 31, 2008 at 2:32 am
RBarryYoung (12/30/2008)
Question 1: What is your supported strategy for Disaster Recovery, that we should be implementing?
...
December 30, 2008 at 11:16 am
John Kandrovy (12/30/2008)
December 30, 2008 at 10:43 am
ibnzakariyyahh (12/30/2008)
i mistakenly created a column on a table with a very small size. now i want to increase the size of that column. any idea?thanks!
create table #t
(col1 nvarchar(100)
)
alter table...
December 30, 2008 at 10:30 am
nazaninahmady_sh (12/23/2008)
sorry what do you mean by non-logged operation?
every action you perfom that changes data or structure of your database is first written to the log file (There are two...
December 30, 2008 at 10:16 am
Also refer to CONVERT Function in your Books Online for various conversion options available.
December 30, 2008 at 9:55 am
Read Andy's article on dynamic queries to grasp the concept.
http://www.sqlservercentral.com/articles/Performance+Tuning/dynamicsqlorstoredprocedure/969/
Also http://www.sqlservercentral.com/articles/Security/dynamicsqlversusstaticsqlp1/617/
contains couple of example along with pros and cons of using dynamic sql.
December 30, 2008 at 8:51 am
Duplicate Post. Pls reply to
http://www.sqlservercentral.com/Forums/Topic627369-23-1.aspx
December 30, 2008 at 8:18 am
That link if from your Books Online.
Simple way to copy/paste that link in your Query Window in SSMS and do CTRL+CLICK. it'll take you to required page.
December 29, 2008 at 11:22 am
Refer BOL. This link contains good example of enctyption using AES algorithm.
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/38e9bf58-10c6-46ed-83cb-e2d76cda0adc.htm
December 29, 2008 at 11:09 am
Viewing 15 posts - 1,321 through 1,335 (of 1,539 total)