Re: Checking if a field is of type NVARCHAR.

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 04/30/04


Date: Thu, 29 Apr 2004 21:40:29 -0500


>Is there an easy way to check if a field in an SQL Server table is of type
>NVARCHAR?
>Preferably by using a SQL statement.
>
You can use the OpenSchema method to retrieve column information from a table.

ADOConnection1.OpenSchema(siColumns
,VarArrayOf([Null,Null,'YourTableNameher',null]),EmptyParam,ADODataSet1)

--
Brian Bushay (TeamB)
Bbushay@NMPLS.com


Relevant Pages

  • Re: DataSet.IndexDefs dont exist?
    ... >a server. ... Try using OpenSchema method ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: how to show that there is a detail record
    ... Brian Bushay TeamB wrote: ... Yes, I want to show it in the same grid, but only something like a bool field that there is a detail dataset available or not. ...
    (borland.public.delphi.database.ado)
  • Re: Problems with Bookmark
    ... Something is very strange here. ... the table and not from the record I click in the DBGrid?? ... Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: MaxRecords
    ... >> I tested this using the Northwind database and Employees table ... >> MaxRecords I had no problem getting MaxRecords to work. ... >> Brian Bushay (TeamB) ...
    (borland.public.delphi.database.ado)
  • Re: Pb while closing ADO query
    ... > Search your hard drive and see if you can find multiple copies of this ... > Brian Bushay (TeamB) ... Prev by Date: ...
    (borland.public.delphi.database.ado)