Categories


Tags


access升迁sqlserver(代理平台数据库转换)

注意:请使用office的microsoft access进行转换,推荐office 2007以上版本 。其他第三方office工具可能无法操作。

1.双击global.mdb打开access数据库-数据库工具-sqlserver

图片1.png

2.使用现有数据库-下一步-dsn名称后

图片2.png

3.选择sqlserver

图片3.png

4.下一步-浏览,设置一个数据源名称,

如test,下一步,完成

图片8.png

下一步,选择使用用户输入登陆id和密码的sqlserver验证,填写数据库帐号密码

图片5.png

下一步,勾选”更改默认的数据库为”,并在下拉框中选择对应数据库

图片7.png

下一步-完成-确定-确定

图片6.png

输入数据库密码,确定

图片8.png

点击双箭头将左侧所有表都添加到右侧,下一步-下一步-下一步-完成

等待所有表都创建到sqlserver服务器的数据库中即可

代理平台升级数据库后

编辑config/const.asp

isdbsql=true  ' 数据库类型

SqlUsername="xiuzhanwang"  ' 登陆帐号

SqlPassword="******"  ' 登陆密码

SqlDatabaseName="xiuzhanwang"  ' 数据库名称

SqlHostIP="sql.xxx.vhostgo.com"  ' 连接地址

然后用sql管理器或者navicat for sqlserver等工具连接sqlserver数据库,执行以下sql语句修改部分字段类型

image.png

alter table countlist alter column c_memo nvarchar(MAX)

alter table productlist alter column p_name nvarchar(MAX)

alter table producttype alter column pt_memo nvarchar(MAX)

alter table protofree alter column freeproid1 nvarchar(MAX)

alter table ActionLog alter column Remark nvarchar(MAX)

alter table ActionLog alter column Remark nvarchar(MAX)

alter table cache_app alter column value nvarchar(MAX)

alter table domaintrans alter column whoisbody nvarchar(MAX)

alter table Free alter column f_content nvarchar(MAX)

alter table HostRental alter column Memo nvarchar(MAX)

alter table HostRental alter column weihulist nvarchar(MAX)

alter table mailsitelist alter column m_agent nvarchar(MAX)

alter table ShopCart alter column addtime datetime

alter table ShopCart  ADD DEFAULT getdate() for addtime

alter table UserDetail ADD DEFAULT getdate() for u_regdate

alter table UserDetail ADD DEFAULT 0 for u_resumesum

alter table UserDetail ADD DEFAULT 0 for u_usemoney

alter table UserDetail ADD DEFAULT 0 for u_Invoice

alter table UserDetail ADD DEFAULT 0 for u_remcount

alter table UserDetail ADD DEFAULT 0 for u_borrormax

alter table countlist ADD DEFAULT 0 for u_in

update UserDetail set u_resumesum=0 where u_resumesum is null

update UserDetail set u_usemoney=0 where u_usemoney is null

update UserDetail set u_Invoice=0 where u_Invoice is null

update userdetail set u_remcount=0 where u_remcount is null

update userdetail set u_borrormax=0 where u_borrormax is null

update countlist set u_in=0 where u_in is null

set identity_insert serverroomlist ON

再取消serverroomlist 表r_id字段的标识

注意:您如果使用数据库自带管理工具,请在选项中取消阻止保存要求重新创建表的更改

image.png

来源:西部数码


Public @ 2020-10-27 15:47:50

VPS/弹性云windows远程桌面连接/ssh方式登陆教程

1. VPS/弹性云Windows远程桌面连接 远程桌面连接是一种远程控制Windows服务器的方式,可以让您在本地计算机上使用Windows操作系统,操作远程服务器,实现远程办公、服务器管理等功能。 具体步骤如下: Step 1: 开启远程桌面服务 在Windows服务器上,打开控制面板 -> 远程设置,勾选“允许远程连接到此计算机”,并设置用户访问权限。如果您使用的是Windows S

Public @ 2023-06-15 00:01:09

VPS/弹性云windows远程桌面连接/ssh方式登陆教程

1.windows主机如何远程登录点本地电脑开始--运行(或者按"window+R")--输入mstsc 回车确认。image.png在弹出远程连接的框输入IP连接image.png输入: ip:33890 ,如 118.123.1.1:33890  (我司弹性云默认端口33890)输入用户名administrator和密码就可远程登录服务器image.pngwin1

Public @ 2021-12-02 16:13:25

使用SQL Server 2000索引视图提高性能

作者:Gail Erickson摘要:本文档介绍 SQL Server 2000 企业版的新功能 - 索引视图。讲解索引视图并讨论一些提高性能的具体方案。什么是索引视图?许多年来,Microsoft? SQL Server? 一直都提供创建虚拟表(称为视图)的功能。在过去,这些视图主要有两种用途:提供安全机制,将用户限制在一个或多个基表中的数据的某个子集。提供一种机制,允许开发人员定制用户如何才能

Public @ 2009-04-05 15:47:53

更多您感兴趣的搜索

0.454552s