|
Yes, it works.
SELECT MAX(Count) FROM MyTable WHERE Date < #1/1/2005# -- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
convert interbase database file into sql server database
My question is that through interbase database i have text file and again i want to convert that file in sql server database or any ms-access database is it possible so what r the steps.....
plz reply soon..
brijesh
convert interbase database file into sql server database
My question is that through interbase database i have text file and again i want to convert that file in sql server database or any ms-access database is it possible so what r the steps.....
plz reply soon..
brijesh
|
|
|
|
|
I am sending emails from SQL Server database. I used sp_send_cdosysmail stored procedure to send emails. I have to pass SMTP Server for this procedure.It works sometime for same SMTP Server name, it does not work sometime. Plz suggest solution for this.
Regards
Venkat M
|
|
|
|
|
would appreciate any assistance re creating a table in a MS Access database and filling it with data stored in a dataset
thanks
|
|
|
|
|
sorry I'm coding in vb.net 2003
|
|
|
|
|
Re creating, could you be more specific? There's a lot about this in the web. You just need to look.
<italic>Work hard, Work effectively.
|
|
|
|
|
I would like my program to read data from an excel spreadsheet into a data set then manipulate the data and then create a new table in a MS Access database and populate the table with data from the dataset without using ADOX.
I cant find examples of a table being filled with a dataset that has data from a different source.
any urls (that may assist) would be appreciated
Thanks
|
|
|
|
|
i have a table with just only 1 column(its type is int) and when i make a query on it i need to have the RECORD NUMBER for every record in resault of query. on the other hands, the query should have two culomns: record number column, the Sumation of table field. i cant have identity column for that table. the table should have only 1 column.
sample:
table data:
1000
3000
5000
query data:
1 1000
2 3000
3 5000
my DBMS is SQL Server 2000
please help me with this problem.
Thanks
Rastegar
|
|
|
|
|
There is no concept of RECORD NUMBER in SQL.
If you need a query row number, you can build it using a temporary table with an identity column and dumping the table when you are done. I don't know why you would want to do this since the index in the result set would be equivalent on the client side.
|
|
|
|
|
Hi all.
i have following problem:
there is a DataSet with two tables. A relation between them.
First table (parent) is a DataSource for a DataGid. What I need is:
when I'm navigating in the grid the ComboBox shows appropriate rows (one column ofcource) from child-table.
can anybody help me?
|
|
|
|
|
Hi all,
I wanna Format my database server due to some reason...
so how i can Backup of SQL Server Databases....
i have around 25 Databases in Sql Server.. and i wanna take backup of all..
So how i can perform this task..
plz guide Step by step....
i m new in DataBase Backup ......
Thanx
Sajjad
|
|
|
|
|
just simply copy all data & log files of all databases
then, restore all
<< >>
|
|
|
|
|
I want to enable TCP\IP protocol for sqlserver, for my client server application, at server side. Becoz i m using MSDE as database. I can enable it through by using SvrNetcn.exe, but want to enable it by vb.net code or by command line parameter or any other way with out using any User Interface. How i can do that?
SEC
|
|
|
|
|
Hi
I have a stored procedure (sp_getscores) that gets a parameter with type int( name it ID )
and returns one row with fields A int, B int, C int.
I need to use this stored procedure as :
I have a range of IDs say 100 to 150.
I want to use sp_getscore foreach ID in range of 100 to 150 and get the tabular result as
ID |A|B|C
___|_|_|____
100|.|.|.
101|.|.|.
...
150|.|.|
which . is an int.
It is obvious that i can achieve this by call the sp in .net application and use a for structure as
for( int i = 100 ; i<= 150 ;i++ )<br />
{<br />
}
But i need to have a sp that does this job for me.
Can anyone write me a t-sql to does this?
Thanks!
|
|
|
|
|
select table.A, table.B, table.C from table where ID in ( 100,101.....,150)
|
|
|
|
|
Please read my problem exactly
I never want what you say!!!
|
|
|
|
|
|
hi,
ı have a report on sql 2005 reporting services. and ı have a matrix on it. ı add a subtotal coloumn for this matrix, but ı want to add an extra coloumn.
for example, ı take some integer numbers totals in subtotal coloumn, and ı want to multiply this values with 50 and ı want to show it in an extra coloumn near subtotal coloumn. but ı didn't do it.
how can ı fix this problem?
please answer me on alisapanci@gmail.com
thanx
|
|
|
|
|
hi guys,
i really need your help
i want to import excel file to sql server table.
the problem is the recordset from excel connection, just insert first value of this recordset to sql server table, but record count is the same as recordcount from this recordset.
before the recordset inserted to sql server table, i display in MSFlexGrid, in MSFlexGrid the values is match with original excel file.
by the way, in excel connection and sql server connection i use aduseclient in cursorlocation, so the recordset support bookmark.
thank you
|
|
|
|
|
I don't understand your problem. Maybe in Indonesian, I'll understand it.
<italic>Work hard, Work effectively.
|
|
|
|
|
Hello,
I currently have a stored procedure that I call multiple times with an ID to return a record. However, in my program, I sometimes need to return several records (for which I have all the IDs) at the same time.
Is there a way I could pass an array of all IDs so I get all the necessary records with just one round-trip to the database?
[EDIT -- Something like this would be ideal:
CREATE PROCEDURE Whatever
(
@param int_array
)
AS
SELECT * FROM Table WHERE ID IN @param ]
Any help would be appreciated! Thanks!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
-- modified at 13:08 Thursday 22nd September, 2005
|
|
|
|
|
Use the IN operator and pass the integer ids as a comma separated string.
Build the entire SQL statement in your application and execute the statement itself instead of calling a stored procedure.
SELECT * FROM Table WHERE ID IN (param1,param2,...)
Hope this helps...
Regards,
Orina DCosta
http://orina.org
|
|
|
|
|
Yes, I have thought of that. But the stored procedure is not just a single SELECT , so it is not as easy. Any other ideas?
Thanks anyway,
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
I prefer to use OpenXML rather than a comma delimited list. I'm not sure if that helps though - I suspect if you can't use one, you can't use the other ? OpenXML does translate nicely from XML to a table though, so it may be a better idea.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello Christian!
Are you talking about the OPENXML[^] T-SQL Function? If yes, I think that could help. I could build a little XML table with all the IDs and get all of the at once.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|