SQL Tables Questions and Answers

Recent IT Questions

1 - 20 of 38
<<PREVIOUS 1|2 NEXT>>

How do I fetch synonym names with the SQLTables function in ODBC API?

Can somebody please explain how to fetch synonym names with the SQLTables function in ODBC API. I currently use the DSN created with SQL Native Client 10 and SQL Server 2005. My code is as follows:</p><p>ret = SQLTables(stmt, NULL, 0, NULL, 0, NULL, 0,...

Answer Question   |  Nov 10 2009  9:40 PM GMT
SQL tables, ODBC
asked by SQL Server Ask the Experts

  2445 pts.

Effective ways for retrieving millions of records from a table?

I have two tables -- [em]Users[/em] and [em]UserAddress[/em] -- with 30 million records in each. Software/Hardware used: SQL Server

View Answer   |  Nov 4 2009  8:48 PM GMT
Data Tables, Microsoft SQL Server, SQL tables
asked by SQL Server Ask the Experts

  2445 pts.

SQL related tables

I have 2 tables one with all my products and their accociated details and another with comments on the products. Product table 1 prodID, title, description, price Comments table 2 commID, prodID, comment I would like to export this to a single XML file, thus an XML element for each product from...

View Answer   |  Oct 16 2009  7:10 AM GMT
SQL tables, SQL Related Tables, MySQL 5.0
asked by Geeko

  5 pts.

Getting last entries from two different tables

Hi, I need to get the last entries from two different tables in MSSQL. I can get the last entry for one table by usung the following. SELECT * FROM dbo.Shaft_Scales WHERE dbo.Shaft_Scales.ID = (SELECT max(ID) from dbo.Shaft_Scales ID) The problem is adding another table. Please help

View Answer   |  Sep 28 2009  7:29 AM GMT
MSSQL, SQL tables
asked by GPNel2006

  75 pts.

Error when insertin.g data into SQL table

                I'm using SQL Server 2005 Express edition as the Database and Microsoft VB.NET 2005 as the programming language for my project. At the moment I'm having a problem of inserting data into one of the tables in my database through my VB.NET application. I...

View Answer   |  Sep 26 2009  10:31 AM GMT
VB.NET 2005 programming, SQL tables, SQL Server tables
asked by Obhasha07

  75 pts.

Diff. between PF and a sql table

can anybody say what is the most basic diff. between making pf by writing DDS and sql table by create table command because both can having index.....

View Answer   |  Sep 25 2009  8:35 PM GMT
DB2/400, DDS, Physical Files
asked by Anky

  10 pts.

Aren't correlation IDs ok in MSSQL for an UPDATE statement?

I'm getting the following error with the attached SQL statment on MSSQL: UPDATE IMMUNE I Software/Hardware used: MSSQL

View Answer   |  Sep 2 2009  4:35 PM GMT
SQL error messages, SQL tables
asked by DeloeranGuy

  55 pts.

Getting specific values from a SQL table to the ComboBox

How do I get specific values from a SQL table to the ComboBox in the running mode?

Answer Question   |  Aug 26 2009  3:53 PM GMT
SQL tables, ComboBox, combo box
asked by SQL Server Ask the Experts

  2445 pts.

recovery when using sql tables

Recovery or rollback procedure when using SQL tables on AS400

View Answer   |  Jul 7 2009  1:34 PM GMT
SQL tables, SQL Server tables, AS/400 SQL
asked by Ragenrags

  10 pts.

Convert column from Number(9) to varchar2(3) in SQL

What is the quickest way of achieving a total column datatype change from number(9) to varchar(3)? I have a few million rows in this table and SQL will run forever ....

View Answer   |  Jun 30 2009  2:26 PM GMT
SQL tables, VARCHAR, SQL
asked by GeoMar

  5 pts.

dynamic temporary table variable usage

We have an sqr (running against a MS SQL Server DB), that references a dynamic temporary table variable in several begin-sql and begin-select statements. I am getting a syntax error in one begin-select statement where I can't resolve the problem. It occurs after the INNER JOIN on the...

View Answer   |  Jun 25 2009  7:53 PM GMT
Dynamic SQL, INNER JOIN, SQL tables
asked by PaminBuckeyeLand

  15 pts.

when i print a work order in the application i need to update a field in a sql table to true

when i print a work order in the application i need to update a field in a sql workorder table to true

View Answer   |  Jun 19 2009  3:48 PM GMT
SQL Server Printing, SQL Printing, SQL tables
asked by Tanjaatbrenlo

  40 pts.

Alter SQL table

hi i have a set of data number | code 1 | abc 2 |ff 3 |aa 3 |bb 4 |cc 5 |dd 5 |ee and i'm wondering if there is a way to convert this data so it looks like number | code1 |code2 1 | abc |null 2 |ff ...

View Answer   |  May 28 2009  11:21 AM GMT
SQL, SQL tables
asked by Lazy167

  55 pts.

Database Issues - Trying to prove that something has to be done

Hello Everyone, I'm currently trying to prove a concept on why we should re-create our old existing PFs into SQL defined tables (Portability, performance, etc.). After taking a look at some files, I noticed an even larger problem that would ruin my chance of proving this concept. Unless some...

View Answer   |  May 26 2009  2:16 PM GMT
Database issues, iSeries, Indexes
asked by Dcantwell

  165 pts.

sql update a column to remove a certain character

i have a table (book) where there is a column that contains number in some rows and numbers with an addition *infront. i want to be able to perform some calculation with the table but the '*' is preventing me from doing this. SO how do i update or alter the table so that i can remove the * and keep...

View Answer   |  May 26 2009  1:41 PM GMT
SQL, SQL tables
asked by Lazy167

  55 pts.

SQL 2005 SSIS Package to load table from positional flat file

I have a positional flat file which I need to load contents into a SQL table. I've created an SSIS package and will need to call a VB script to parse the file but since I'm new at VB and SQL I need some assistance creating the VB script. There are 4 fields in the table I need to populate. The...

Answer Question   |  May 22 2009  8:00 PM GMT
SSIS flat file package, SSIS Package, SQL 2005
asked by Dacker

  5 pts.

split column

i need to take a column in my database and split it into different columns based on a question id. Basically i want to write a whole bunch of sql statements that are non related for one grid - a whole bunch of sql statements each with their own where statement

Answer Question   |  May 1 2009  3:26 PM GMT
SQL, SQL tables
asked by Bananahead

  60 pts.

SQL Server 2005 Select Multiple views or Tables

in SQL 2000 it was easy to cntl-right-click and select multiple views, stored procedures or tables and generate one script which could be changed (using SQL Analyzer) to create new objects (search and replace text) with different names. This was a big time saver but I don't know how to do that in...

View Answer   |  Mar 18 2009  0:07 AM GMT
SQL 2005, SQL Query Analyzer, SQL Server 2005
asked by SapwizSAP

  5 pts.

table row values for column headers

Hi. I have two tables in a simple database: Prices ID (int, identity, PK) Year (smallint - year of value) Quarter (smallint - year quarter 1-4) Area (smallint - FK to Areas.ID) Index (float) Areas ID (int, identity, PK) Name (varchar) So, as you can see, the Prices table contains price...

View Answer   |  Mar 17 2009  7:25 PM GMT
SQL, SQL Database, SQL tables
asked by Snowbunny

  5 pts.

two dimentional output

I have a table. The structure looks like this: id(pk) year col1 col2 date 1 2008 50 60 feb09 2 2008 40 70 feb10 3 2009 60 80 feb23 4 2009 50 70 feb24 5 2008 40 80 feb26 I have no idea how to write a sql query to output a table which...

View Answer   |  Feb 17 2009  5:53 PM GMT
SQL tables, SQL Query, Two-dimensional Output
asked by Zhao

  5 pts.

1 - 20 of 38
<<PREVIOUS 1|2 NEXT>>