Click here to Skip to main content
15,922,650 members
Home / Discussions / Database
   

Database

 
AnswerRe: EnumAvailableSqlServers does not list SQL 2000 server. Pin
Abhishek Sur27-Oct-09 22:46
professionalAbhishek Sur27-Oct-09 22:46 
GeneralRe: EnumAvailableSqlServers does not list SQL 2000 server. Pin
hoangthu197427-Oct-09 22:49
hoangthu197427-Oct-09 22:49 
GeneralRe: EnumAvailableSqlServers does not list SQL 2000 server. Pin
Abhishek Sur27-Oct-09 22:53
professionalAbhishek Sur27-Oct-09 22:53 
GeneralRe: EnumAvailableSqlServers does not list SQL 2000 server. Pin
hoangthu197427-Oct-09 23:01
hoangthu197427-Oct-09 23:01 
Questionhow to desinged tables? Pin
iceman861627-Oct-09 15:55
iceman861627-Oct-09 15:55 
AnswerRe: how to desinged tables? Pin
Mycroft Holmes27-Oct-09 20:57
professionalMycroft Holmes27-Oct-09 20:57 
GeneralRe: how to desinged tables? Pin
iceman861627-Oct-09 22:43
iceman861627-Oct-09 22:43 
GeneralRe: how to desinged tables? Pin
Mycroft Holmes28-Oct-09 14:32
professionalMycroft Holmes28-Oct-09 14:32 
Do you know what a UDF is and how they function?

Create a UDF that returns a rowset with dates and their state for defined period eg 200 days from 1/10/2009

In the UDF you create a table variable that you populate using the DataAdd function in a while loop

You then update the state based of DayOfWeek function

You then do a join to the holiday table to update the state based on dates entered by the user into the holiday table

(All of the above can be achieved in 1 step but try it in 3 steps to get a feel for the processes)

Return the rowset to the stored proc that called it where it can be used in a join or select statement.



GeneralRe: how to desinged tables? Pin
iceman861628-Oct-09 15:17
iceman861628-Oct-09 15:17 
GeneralRe: how to desinged tables? Pin
Mycroft Holmes28-Oct-09 15:23
professionalMycroft Holmes28-Oct-09 15:23 
Questionobject reference not set to an instsnce of an object Pin
Mangesh Tomar27-Oct-09 9:34
Mangesh Tomar27-Oct-09 9:34 
AnswerRe: object reference not set to an instsnce of an object Pin
Abhishek Sur27-Oct-09 9:43
professionalAbhishek Sur27-Oct-09 9:43 
AnswerRe: object reference not set to an instsnce of an object Pin
Mangesh Tomar27-Oct-09 10:11
Mangesh Tomar27-Oct-09 10:11 
GeneralRe: object reference not set to an instsnce of an object Pin
Not Active27-Oct-09 10:17
mentorNot Active27-Oct-09 10:17 
GeneralRe: object reference not set to an instsnce of an object Pin
Henry Minute27-Oct-09 10:24
Henry Minute27-Oct-09 10:24 
GeneralRe: object reference not set to an instsnce of an object Pin
Luc Pattyn27-Oct-09 11:26
sitebuilderLuc Pattyn27-Oct-09 11:26 
GeneralRe: object reference not set to an instsnce of an object Pin
Abhishek Sur27-Oct-09 22:48
professionalAbhishek Sur27-Oct-09 22:48 
GeneralRe: object reference not set to an instsnce of an object Pin
Abhishek Sur27-Oct-09 22:51
professionalAbhishek Sur27-Oct-09 22:51 
QuestionTime Diffrence in SQL Pin
sandhya1427-Oct-09 0:28
sandhya1427-Oct-09 0:28 
AnswerRe: Time Diffrence in SQL Pin
i.j.russell27-Oct-09 0:35
i.j.russell27-Oct-09 0:35 
AnswerRe: Time Diffrence in SQL Pin
J4amieC27-Oct-09 1:52
J4amieC27-Oct-09 1:52 
AnswerRe: Time Diffrence in SQL [modified] Pin
Niladri_Biswas27-Oct-09 16:12
Niladri_Biswas27-Oct-09 16:12 
GeneralRe: Time Diffrence in SQL Pin
Not Active27-Oct-09 18:00
mentorNot Active27-Oct-09 18:00 
GeneralRe: Time Diffrence in SQL Pin
Niladri_Biswas28-Oct-09 3:22
Niladri_Biswas28-Oct-09 3:22 
QuestionWindows Server woth SQL Pin
JustWorking26-Oct-09 22:46
JustWorking26-Oct-09 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.