Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K

14 Posted Topics

Member Avatar for leoeroy

Hi, Here is a different example using an String.empty to stop input, and uses the number of elements in the arraylist for the loop count.... [code] Sub Main() Dim nameAL As ArrayList = New ArrayList 'Write Console.WriteLine("Enter a full name, Last, First") Dim emptyLine As Boolean = False Dim nameString …

Member Avatar for RipperJT
0
194
Member Avatar for geek_till_itMHZ

Hi, You could prefix the table name to the column e.g.: SELECT Category.catagoryID, MAX( ..... The query engine doesn't want to guess which table is the one it's supposed to pull that column from... Jason. [QUOTE=geek_till_itMHZ;1045428]Iam writing (or trying to write) a simple join query statement in Query Analyzer. As …

Member Avatar for princekool
0
164
Member Avatar for ansari.wajid

Hi, you can use math comparison operators to select from a range of values, you can add an OR to the statement below to select from an additional range. [code] SELECT * FROM TableName WHERE ([lower] >= 12 AND [upper] <= 20) OR ([lower] >= 100 AND [upper] <= 150) …

Member Avatar for ansari.wajid
0
134
Member Avatar for kavithabhaskar

Hi, You specified the connection and command objects but you probably want a data reader...also you'll need to open the connection. [code] Dim dr As OleDbDataReader dr = cmd1.ExecuteReader(CommandBehavior.Default) Do while dr.read() variablename = dr("columnName") loop [/code]

Member Avatar for RipperJT
0
136
Member Avatar for kyriakos70

Hi, I would try using the GROUP BY & HAVING clause... [code] SELECT AFM, count(AFM) 'Count' FROM kyrf1 GROUP BY AFM HAVING COUNT(AFM) > 1 [/code]

Member Avatar for RipperJT
0
140
Member Avatar for surgupta

You can use the ALTER TABLE statement to do this... [code] ALTER TABLE dbs ALTER COLUMN ename varchar(20) NOT NULL; GO ALTER TABLE dbs ADD CONSTRAINT pk_ename PRIMARY KEY (ename); GO [/code]

Member Avatar for RipperJT
0
57
Member Avatar for kavithabhaskar

I can't test this right now but it should give you direction... [code]cmd1 = New OledbCommand("SELECT * FROM TABLE1 WHERE ((Ram >= @minRam) AND (Ram <= @maxRam))", con) cmd1.Parameters.Add("@minRam", ComboBox6.SelectedItem) cmd1.Parameters.Add("@maxRam", ComboBox7.SelectedItem)[/code]

Member Avatar for RipperJT
0
85
Member Avatar for Member #124326

Hi, the following statement should work... [code]SELECT min(Time),[Special Number] FROM table GROUP By [Special Number] [/code]

Member Avatar for wujtehacjusz
0
104
Member Avatar for kavithabhaskar

The wildcard is Access is the * but in T-SQL the % is the wildcard operator, and this is used in conjunction with the LIKE operator. Try... [code] select * from table1 where GRAPHICSCARD LIKE 'NVIDIA%'" [/code]

Member Avatar for kavithabhaskar
0
114
Member Avatar for Bill Purkins

I worked on something like this a little while ago, we used the filter & sort propery to narrow down the list. [code]Me.BindingSource.Filter = "Column LIKE '" & Textbox.Text & "&'" And Me.BindingSource.Sort = "Column Desc"[/code]

Member Avatar for Bill Purkins
0
597
Member Avatar for Jemjoo

Try checking the properties of the KlantTableAdapters update & delete commands to see if they are valid. If the table being affected has no primary key this can also cause this type of problem.

Member Avatar for RipperJT
1
271
Member Avatar for campkev

Were you specifying the decimal precision and scale before? The default scale is zero. [URL="http://msdn.microsoft.com/en-us/library/aa258832(SQL.80).aspx"]http://msdn.microsoft.com/en-us/library/aa258832(SQL.80).aspx[/URL]

Member Avatar for RipperJT
0
136
Member Avatar for mistyfy_t

If you've verified the connection string information and that you have insert permissions on the table, I would try add the owner or schema of table e.g. [code] INSERT INTO dbo.Table_name [/code]

Member Avatar for RipperJT
0
82
Member Avatar for kavithabhaskar

I believe you need to specify the connection that the command object going to use. In ADO you can specify the timeout, command type, command, and the connection to use.

Member Avatar for RipperJT
0
103

The End.