Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: HLPCH
  • Content: Threads
  • Order by date
  1. HLPCH

    Calling a vb dll in C#

    I have created the following Activexdll in vb6: Class: our_csharp Public Function Show() MsgBox ("Message box created by using Visual Basic") End Function I have compiled the above project and set the porject compatibility to Binary. Now when i invoke this from asp.net(set...
  2. HLPCH

    Date Extract

    hi, How could I extract only the date from a Datetime field? Example: "12/22/2005 12:00:00" I need only 12/22/2005. thanks in advance.
  3. HLPCH

    DTS question

    Hi, I want like to create a package which would export data to a word document. I don't see this option under the DTS wizard. Is it possible to import/export to word? Thanks
  4. HLPCH

    Export Data to Word

    Hi, I want to create a package which would export data to a word document. I don't see this option under the DTS wizard. Is it possible to import/export to word? Thanks
  5. HLPCH

    Basic DTS Question

    I wanted to know if this the following task was possible using DTS. I have database "MMX". I have couple of tables in it. I want to execute a series of queries in the current database to populate a table. Can i achieve this using a DTS package. If so how? I have no data transfer from one...
  6. HLPCH

    Access query to SQL

    I need to convert this Access query to SQL. There's no DistinctRow keyword in SQL. Could someone help me on the syntax? UPDATE DISTINCTROW IRtest SET IRtest.[File #] = Right([File #],6); Thanks
  7. HLPCH

    Converting the Access Query to SQL

    I need to convert this Access query to SQL. There's no DistinctRow keyword in SQL. Could someone help me on the syntax? UPDATE DISTINCTROW IRtest SET IRtest.[File #] = Right([File #],6); Thanks
  8. HLPCH

    Combining Queries

    Hi, I wanted to know if there's any way to execute a bunch of queries in the DTS Package. I use the execute SQL Task to run the queries against a database. But I would like to run 15 queries all at once very similar to the Batch process. Basically wanted to know if I could have a series of SQL...
  9. HLPCH

    DTS-Access Queries

    Hi, I am creating a package to transfer data from MS Access to SQL Server. I used the connection object to specify the Source and Destination. I know the Transfer Data task would transfer data from each of the tables from Ms Access. However I wanted to know if the DTS had the capability to...
  10. HLPCH

    DTS Package

    Hi, I am creating a package to transfer data from MS Access to SQL Server. I used the connection object to specify the Source and Destination. I know the Transfer Data task would transfer data from each of the tables from Ms Access. However I wanted to know if the DTS had the capability to...
  11. HLPCH

    Alter Table

    Hi I want to Alter couple of tables and add a new column "Lastupdated". Here' what I did. Create Procedure [Sample] As ALTER TABLE[Test] ADD LastUpdated DateTime NULL go ALTER TABLE[Test1] ADD LastUpdated DateTime NULL go ALTER TABLE[Test2] ADD LastUpdated DateTime NULL Go The above...
  12. HLPCH

    Syntax help

    Hi, Could some tell me the syntax to change the backup settings to Full Recovery mode? My Transaction log button is disabled and I guess if I change the Recovery mode to Full ,I could activate this option. Alter database Test < recovery_option > ::= RECOVERY { FULL } I tried the above...
  13. HLPCH

    System Time

    Hi, Could someone tell me what function I need to use to get the system Time? I know that the Getdate() only gives the currentdate plus time. But I only need the time portion in the format hours:minutes:seconds Thanks CS
  14. HLPCH

    Identity_Insert

    I have a stored Procedure with couple of Insert statements. Insert into Contact1(field1,field2)values(value1,value2) Insert into Contact2(field1,fields2)values(value1,value2) Both the tables contact1 and contact2 have an Identity field. My insert fails because at a given time I could only set...
  15. HLPCH

    Stored Procedure

    Hi, I have couple of insert statements in the stored procedure. After i execute the stored procedure, how could i check if each one of them were successfull? Basically i want a flag inside the stored procedure which gives me the status of the updates. Thanks
  16. HLPCH

    @@identity

    Select @@identity as orderid from orders. I tried executing this and no value came up. I tried it on the Northwind .Orders.How could i get the last generated number? Thanks
  17. HLPCH

    Stored Procedure Execute Statement

    Could someone tell me why my execute statement gives me an error 'Error converting data type nvarchar to datetime.' Here's the statement: execute insert_Contact1_1 'A50824380140',getdate The first field is a nvarchar data type and second is a date type. Somehow it does not recognize the...
  18. HLPCH

    IIf function

    I am trying to test the IIF statement and it does not work. select iif(isnull(regions),'A','B') from customers Could someone help me on this?
  19. HLPCH

    Date Conversion

    I used the DTS Import wizard to import data from Microsoft Accesss. In one of the tables , I have column(lastdate) which is of Date type in Access. When i import this to SQL server it gives me an Overflow Error. I am importing this field as a DateType field in SQL. It works when I change the...
  20. HLPCH

    Changing Recovery otpion

    I would like to backup the Transaction Log of my database. When i do a backup I see the Transaction log option is grayed out. I read that I need to change the recovery model of the Model database. How could i do this? Thanks in advance.

Part and Inventory Search

Back
Top