I would like to create a table where I keep the record of time period which refrence to an event. The time variable is in the format of Hour, Minute, Second (Three Double Digits). How can I created a table to stroe these information and still be able to run a search quary?
I don't have a problem converting the time into only one number which would be second but I rather to keep the table in the same format of column for each of the hour, minute, and second.
1.Create column with datetime datetype and name it MyDateTimeColumn
2. use getdate() to fill it
it will be like 28-02-2007 12:34:567
3.Use if it is helpful CONVERT(varchar(11),Mytable.MyDateTimeColumn,105)
This 105 is pamaretar and can be in range 100-114?
or from some two gidits number I think from 10 to ...try u will see
I am trying this command but i dont know its not working..
its not giving any error...but data is not getting inserted..i have tried to insert breakpoint..but program doesnt stop here..
about the databse structure..I am using SQL Server express edition
Site_ID is auto incremental in nature
Code is :
SqlDataSource siteDataSource = new SqlDataSource();
siteDataSource.ConnectionString = ConfigurationManager.ConnectionStrings["ProjectConnectionString"].ToString();
i have a rack of two dimensional where every slot is recognized by rowno and columnno now in every slot i placed item (captured by itemcode). nOw i want to find slot do not assing any item
please give me some idea
there is rackmst( where i define max_no_row and max_no_cols).
It's used to convert a string literal to wide character.
for example. If you have a column with nvarchar and you want to compare it with a string (where mycol= 'abc') you should make it like: (where mycol= N'abc')
you'll not notice that the first will not give the expected results unless you use a language other than English (Arabic strings for example).
am using sqlserver 2000 as my database. my problem is am the DB administrator. i totally granting Permission to 10 user. i want to restrict 3 user can only access the DB at a time. All the others trying to enter, then it will shows that already 3 user's login u should try after some time...
Is It Possible? Please help me to solve this Problem.
I was tried your suggestion. in that case i am getting some error. i also want to know how to do it without any errors.error is come from my software
only but i dont know how to solve it.
Am going to controlpanel->administrative tools->computer management->services and application->microsoft sqlserver->localwindowsNT then its property am changing the connections to zero to five. whenever am doing this the computer management console not responding and am also not able to start my database services. it was shown some error message and the error number is -1073741724. what it is? how to rectify it? Please help me....
i have sql server 2000 personal in server, and i want connect to it from client by vc#2005, but the following error shown me :
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Your query is not clear.
is that you are trying to access from an application
if so, which one.
or from Query analyzer directly use the sql statements.
of from enterprise manager is a graphical interface.
from Query analyzer.
task description is:
I have central sql2000(general office) db and several(5) sql2000 db as 5 point of sales.
GeneralOffice need fresh data about realizaton in stores as they need fresh data about new articles and price modification etc.
Connecton is by dial-up(modem connection).
I have one solution: create an xml file wich is transfer over network, but it is slowly and complicated for employees in stores.
My second idea is creating linked server but i have no experience in subject.