Solved

sqlserver + timespan column datatype

Posted on 2007-04-04
3
2,761 Views
Last Modified: 2012-08-13
I'm using sqlserver and I have
One Column in a Table   whose DataType  is Timespan

How can I retrieve  Timespan Column  Value  on the Form using VB.Net

e.g:
txtcode.text=myDataReader("code")
txtname.text=myDataReader("name")
txttimespan.text=myDataReader("timespancolumn")

0
Comment
Question by:sohrabus
3 Comments
 
LVL 18

Accepted Solution

by:
Sham Haque earned 500 total points
ID: 18849248
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=182986&SiteID=1

"SQL Server 2005 does not support timespan datatypes directly.

You can wrap the CLR timespan type using the SQL CLR functionality and provide a cast that accepts the string format..."
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WSUS Console loosed connectivity to the database. 13 44
help converting varchar to date 14 25
How can I retrieve the column names from a T-SQL table? 2 18
Access #Deleted data 20 45
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question