Viewing 15 posts - 8,671 through 8,685 (of 13,876 total)
sk88 (2/22/2015)
Yes you are right. I am using Oracle
You're in the wrong forum, I'm afraid: this one is for SQL Server 🙂
February 22, 2015 at 11:34 am
Here's one way. Not sure if there's anything more elegant.
declare @d date = '20081221'
select @d
,replace(convert(char(11), @d, 13), ' ', '/')
And presumably you...
February 22, 2015 at 11:18 am
Sridhar-137443 (2/19/2015)
Company, Empno, Level1, Level2, Level3,...
February 19, 2015 at 8:22 am
If the database file has been corrupted and you have no backups, and no one has scripted out the procs you are talking about (check with the developers), I am...
February 19, 2015 at 1:20 am
A side point. Char(50) is probably not the optimal datatype to use here, as your names have varying lengths. I would recommend that you switch to Varchar(50) to save space.
February 19, 2015 at 12:46 am
luhar.mitul (2/19/2015)
WE TRIED TO RESTORE DATABASE FROM "SQL SERVER MANAGEMENT STUDIO (SSMS) 2012".
NO NEED TO SHOUT.
Once again, if your database is under source control, you can retrieve the definitions there...
February 19, 2015 at 12:44 am
In my experience, developers do not have the same big-picture view of server health and performance that DBAs have (and need to have to do their work). Seasoned DBAs know...
February 18, 2015 at 10:18 am
Bizarre. Haven't used Ignore_dup_key for a while, but this looks wrong to me.
February 18, 2015 at 5:36 am
February 18, 2015 at 4:58 am
Jason-299789 (2/18/2015)
IN SQL check out the HASHBYTES function.
eg
SELECT
COL1,COL2, HASHBYTES('MD5',COL1+'|'+COL2+'|')
FROM aTable
One other thing there's no guarantee that you will...
February 18, 2015 at 4:30 am
Nice article Andy. I have never seen it all set out so clearly before, well done.
February 18, 2015 at 12:29 am
vipin_jha123 (2/17/2015)
--becaue I have to chive in sql ,
--
I am not familiar with the verb 'chive'. What do you mean?
February 17, 2015 at 5:06 am
This is not a valid SQL datatype.
February 17, 2015 at 5:01 am
Louis Hillebrand (2/17/2015)
Noticed something when I was doing some testing.Adding 1 year to 2012-02-29 returns 2013-02-28
SELECT dateadd(year, 1, '20120229')
What would you expect?
February 17, 2015 at 2:59 am
Viewing 15 posts - 8,671 through 8,685 (of 13,876 total)