Click here to Skip to main content
15,916,463 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear friends i have a database in my sql server 2008 r2 now i need to make it trial mean it should work for two days just and then it should leave work
Posted
Comments
Maciej Los 17-Mar-15 10:26am    
What you mean: "how to make sql server database for limited time"? Do you want to use sql server inbuilt function or restrict usage of application to range of days in C# code?
Muhammad Qasim Ludin 17-Mar-15 10:27am    
no i dont want to use C# just sql server db file need to make for limited time

You'll have to write code in your UI app to be trial. There are many, many ways to do it so I would suggest googling for examples and then pick a method that works for you.
 
Share this answer
 
Comments
Maciej Los 17-Mar-15 14:34pm    
Short and to the point!
Muhammad Qasim Ludin 1-Apr-15 10:59am    
thank you brother ok so how i can make trial
There's no builtin function in MS SQL server, which provides such of functionality. RyanDev is right saying that GUI has to check expiry date of your software. ;)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900