Viewing 15 posts - 496 through 510 (of 516 total)
Friend: Check out the following link
http://www.youtube.com/watch?v=c-Zfgg5Ayyc&feature=related
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 19, 2012 at 11:27 am
Short and simple answer:
If your flat file is fixed width (delimited) use CHAR data type else use VARCHAR
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 19, 2012 at 11:21 am
Further to add on; scalar functions are always deterministic.
- Lokesh
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 19, 2012 at 11:17 am
Why to extend names of foreign keys. We can keep domain for both the tables same. Like this:
Department
=========
Dept_ID (PK)
DName
Employee
=======
ID (PK)
Name
Dept_ID (FK)
Here Dept_ID in Employee table is a foreign key to...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 19, 2012 at 11:15 am
Function Categorization:
1) System Functions
2) User Defined Functions
2.1) Scalar Functions
2.1) In-Line table valued Functions
2.1) Multi-statement table...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 19, 2012 at 11:04 am
Thanks for the update. I was also thinking in the same fashion.
- Lokesh
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 19, 2012 at 9:55 am
Another link for you with good examples:
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:39 pm
Not sure why are you using all this for range --> use substring instead
Check this link:
http://msdn.microsoft.com/en-us/library/ms187748.aspx
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:37 pm
Kindly post some logs. How are you so sure that the value is truncated?
Will check the logs and let you know.
- Lokesh
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:32 pm
I do agree with Lynn on performance perspective.
- Lokesh
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:28 pm
cool...Thanks Jason.
Much appreciated!
- Lokesh
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:16 pm
🙂
works for x % 10 where x >= 10
Thanks
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:11 pm
use @@rowcount after your insert statement to check if there is any data inserted
Refer this link:
http://technet.microsoft.com/en-us/library/ms187316.aspx
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:09 pm
Jason: I always wonder when I use CTE to delete duplicate rows.
CTE being ANSI compliant, why does it let us delete data from CTE? I am sure ANSI norms does...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 12:03 pm
better way optimize for modulo 10 would be to use RIGHT function.
RIGHT(value,1) -- check if this helps
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 18, 2012 at 11:58 am
Viewing 15 posts - 496 through 510 (of 516 total)