Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 864217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:26:26+00:00 2026-05-15T09:26:26+00:00

I am trying to copy a sql database into a vb.net application however it

  • 0

I am trying to copy a sql database into a vb.net application however it is not maintaining the default values when I do this. Is it possible to import the default values and have them automatically assigned when creating a new row or do I have to manually assign the default values again in my code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:26:27+00:00Added an answer on May 15, 2026 at 9:26 am

    I assume you’re databinding your data on a grid control? Default values are only known to the database and are only used if you send an INSERT statement without data for the column that the default constraint is on. This means you have to manually set the default value if you want it to be visual in your application before you insert your data.

    You can in fact retrieve the default value from the database, but these values are presented as a SQL formula (nvarchar) so you’d have to execute them in order to get an actual value (e.g.: default “0” would be stored as “(0)”)

    select COLUMN_DEFAULT from INFORMATION_SCHEMA.COLUMNS 
    where TABLE_SCHEMA = 'abc' and TABLE_NAME = 'def' and COLUMN_NAME = 'ghi'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to copy tables form a MS Access database into a SQL Server
I'm trying to copy SQL database from one server to another. Please tell me
I am trying to import a .csv file into my database. I am able
I am trying to import a .csv file into my database. I am able
I'm trying to copy a database dump sql file from my server to my
I'm trying to execute an sql statement in vb.net to an Access database, I
I'm trying to import some data from excel into a database . i got
Trying to copy a database into a new database, using a PHP script that
Newbie to sql and sqlite. I'm trying to save a database, then copy the
I'm trying to prepare to build a database driven .net application and I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.